Created
January 7, 2021 20:49
-
-
Save SummittDweller/9e179f948faf0d30fe8069f684b7d762 to your computer and use it in GitHub Desktop.
CentOS7 Home Server Startup Script for Paperless-ng
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "This is my /var/tmp/startup_script.sh to auto run during boot" > /var/tmp/script.out | |
echo "The time the script run was --> `date`" >> /var/tmp/script.out | |
# See ~/Desktop/README.md Set inotify capacity for Paperless-ng | |
# | |
cat /proc/sys/fs/inotify/max_user_watches # default is 8192 | |
sudo sysctl fs.inotify.max_user_watches=1048576 # increase to 1048576 | |
echo "Parameter for inotify increased, max_user_watches=1048576" >> /var/tmp/script.out | |
# Start Paperless-ng | |
# | |
cd ~/GitHub/paperless-ng-dockerfiles | |
docker-compose up -d | |
echo "Paperless-ng should be started. Visit it at http://localhost:8000" >> /var/tmp/script.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment