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

Use helper to restore systemd unit

This commit is contained in:
Josué Tille 2020-04-11 11:20:44 +02:00
parent a1132e5b26
commit b84fab959a
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 1 additions and 2 deletions

View file

@ -32,7 +32,6 @@ ynh_backup --src_path "$final_path"
ynh_script_progression --message="Backing configuration..."
ynh_backup --src_path "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini"
ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service"
# Backup Data and LOG
ynh_script_progression --message="Backing up data..."

View file

@ -48,7 +48,7 @@ ynh_psql_execute_as_root \
# Restore systemd configuration
ynh_script_progression --message="Reconfiguring application..."
systemctl daemon-reload
ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@$app.service"
#=================================================