save db in a persistent folder, /var/run is not persistent in every OS

This commit is contained in:
b3yond 2018-04-15 09:41:27 +02:00
parent 898f229145
commit 9b01ac7eac
2 changed files with 3 additions and 6 deletions

View file

@ -118,8 +118,8 @@ echo "Enter your domain name into the following prompt:" && read DOMAIN
sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/sites-enabled/$DOMAIN.conf sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/sites-enabled/$DOMAIN.conf
# create folder for socket # create folder for socket
sudo mkdir /var/run/ticketfrei sudo mkdir /var/ticketfrei
sudo chown www-data:www-data -R /var/run/ticketfrei sudo chown www-data:www-data -R /var/ticketfrei
sudo chown www-data:www-data -R /var/log/ticketfrei sudo chown www-data:www-data -R /var/log/ticketfrei
# start up nginx # start up nginx

View file

@ -14,7 +14,4 @@ user = "user"
passphrase = "sup3rs3cur3" passphrase = "sup3rs3cur3"
[database] [database]
db_path = "/var/run/ticketfrei/db.sqlite" db_path = "/var/ticketfrei/db.sqlite"
# when migrating to mysql:
# username = "username"
# password = "password"