1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Fix restore

This commit is contained in:
yalh76 2022-03-19 00:50:12 +01:00
parent 964862974c
commit 31422e6376
2 changed files with 6 additions and 1 deletions

View file

@ -131,6 +131,12 @@ ynh_remove_uwsgi_service () {
ynh_restore_uwsgi_service () {
ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@$app" --quiet
# make sure the folder for logs exists and set authorizations
mkdir -p /var/log/uwsgi/$app
chown $app:root /var/log/uwsgi/$app
chmod -R u=rwX,g=rX,o= /var/log/uwsgi/$app
yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log"
}

View file

@ -97,7 +97,6 @@ ynh_restore_uwsgi_service
# Set the permission
ynh_script_progression --message="Protecting directory..."
setup_dir
set_permission
#=================================================