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:
parent
4fd3a0f5bb
commit
a81ba55843
2 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue