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

Fix backup

This commit is contained in:
ewilly 2023-10-18 21:34:16 +02:00
parent 89f4853d8c
commit d7bf78aae6

View file

@ -108,7 +108,9 @@ ynh_remove_uwsgi_service () {
# usage: ynh_backup_uwsgi_service
ynh_backup_uwsgi_service () {
ynh_backup --src_path="/etc/uwsgi/apps-available/$app.ini"
ynh_backup --src_path="/etc/systemd/system/uwsgi-app@$app.service.d"
if [ -e "/etc/systemd/system/uwsgi-app@$app.service.d" ]; then
ynh_backup --src_path="/etc/systemd/system/uwsgi-app@$app.service.d"
FI
}
# Restore the dedicated uwsgi config