1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

Use uwsgi helper to restore systemd unit

This commit is contained in:
Josué Tille 2020-04-11 14:18:51 +02:00
parent 4fd3a0f5bb
commit a81ba55843
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 1 additions and 3 deletions

View file

@ -50,7 +50,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_script_progression --message="Backing up uWSGI configuration..."
ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini"
ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service"
ynh_backup --src_path "/var/log/uwsgi/$app"
#=================================================

View file

@ -83,10 +83,9 @@ chown $app: --recursive "$final_path"
#=================================================
ynh_restore_file --origin_path="/etc/uwsgi/apps-available/$app.ini"
ynh_restore_file --origin_path "/etc/systemd/system/uwsgi-app@.service"
ynh_restore_file --origin_path "/var/log/uwsgi/$app"
chown $app:root /var/log/uwsgi/$app
systemctl daemon-reload
ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@$app.service"
#=================================================