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:
parent
0d2eb06262
commit
da655023c9
2 changed files with 1 additions and 2 deletions
|
@ -43,6 +43,5 @@ ynh_backup --src_path "/var/log/uwsgi/$app"
|
|||
# BACKUP THE UWSGI FILES
|
||||
ynh_script_progression --message="Backing up configuration..."
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
||||
systemctl daemon-reload
|
||||
ynh_check_global_uwsgi_config
|
||||
systemctl enable "uwsgi-app@$app.service"
|
||||
|
||||
# RELOAD NGINX AND UWSGI
|
||||
|
|
Loading…
Reference in a new issue