setup-deb-bullseye.sh 324 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e;
  3. mkdir -p storage
  4. sudo chgrp www-data storage \
  5. .htpasswd \
  6. nginx.conf
  7. sudo chmod 770 storage
  8. sudo chmod g+s storage
  9. sudo chmod 640 .htpasswd nginx.conf
  10. sudo ln -sf $PWD/nginx.conf /etc/nginx/sites-enabled/notes-app.conf
  11. sudo nginx -t
  12. sudo service nginx reload