diff --git a/scripts/restore b/scripts/restore index c3d4fc8..c58b91d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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