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:
parent
964862974c
commit
31422e6376
2 changed files with 6 additions and 1 deletions
|
@ -131,6 +131,12 @@ ynh_remove_uwsgi_service () {
|
||||||
ynh_restore_uwsgi_service () {
|
ynh_restore_uwsgi_service () {
|
||||||
ynh_check_global_uwsgi_config
|
ynh_check_global_uwsgi_config
|
||||||
systemctl enable "uwsgi-app@$app" --quiet
|
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"
|
yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,6 @@ ynh_restore_uwsgi_service
|
||||||
|
|
||||||
# Set the permission
|
# Set the permission
|
||||||
ynh_script_progression --message="Protecting directory..."
|
ynh_script_progression --message="Protecting directory..."
|
||||||
setup_dir
|
|
||||||
set_permission
|
set_permission
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue