Skip to content

Instantly share code, notes, and snippets.

Created January 7, 2021 20:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
CentOS7 Home Server Startup Script for Paperless-ng
echo "This is my /var/tmp/ to auto run during boot" > /var/tmp/script.out
echo "The time the script run was --> `date`" >> /var/tmp/script.out
# See ~/Desktop/ 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