1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ffsync_ynh.git synced 2024-09-03 18:26:38 +02:00

Use helper to restore systemd unit

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

View file

@ -43,6 +43,5 @@ ynh_backup --src_path "/var/log/uwsgi/$app"
# BACKUP THE UWSGI FILES # BACKUP THE UWSGI FILES
ynh_script_progression --message="Backing up configuration..." ynh_script_progression --message="Backing up configuration..."
ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini" ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini"
ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service"
ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last

View file

@ -56,7 +56,7 @@ yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app"
ynh_script_progression --message="Reloading services..." --weight=3 ynh_script_progression --message="Reloading services..." --weight=3
systemctl daemon-reload ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@$app.service" systemctl enable "uwsgi-app@$app.service"
# RELOAD NGINX AND UWSGI # RELOAD NGINX AND UWSGI