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:
parent
728a53fb2a
commit
e24453ff65
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue