1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coin_ynh.git synced 2024-09-03 18:16:26 +02:00

Fix restore script

This commit is contained in:
Josué Tille 2018-12-20 19:58:44 +01:00
parent 728a53fb2a
commit e24453ff65

View file

@ -44,6 +44,8 @@ ynh_package_install python3-pip python3-virtualenv
# Restore sources & data
sudo cp -a ./sources $final_path
# Create user
useradd $app -d $final_path || echo "User already exists"
# Set permissions
sudo chown -R www-data:www-data $final_path
@ -66,6 +68,7 @@ sudo chgrp -R www-data /var/log/$app
# Reload Nginx
sudo service nginx reload
systemctl daemon-reload
sudo systemctl start $app
sudo systemctl enable $app
sudo yunohost service add $app -l /var/log/gunicorn/$app.log