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

Fix upgrade

This commit is contained in:
yalh76 2022-03-09 20:30:52 +01:00
parent ee223e08ba
commit e618085d32
2 changed files with 6 additions and 1 deletions

View file

@ -83,8 +83,9 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_script_progression --message="Restoring various files..." ynh_script_progression --message="Restoring various files..."
ynh_restore_file --origin_path="/etc/uwsgi/apps-available/$app.ini" ynh_restore_file --origin_path="/etc/uwsgi/apps-available/$app.ini"
mkdir -p "/var/log/uwsgi/$app" mkdir -p /var/log/uwsgi/$app
chown $app:root /var/log/uwsgi/$app chown $app:root /var/log/uwsgi/$app
chmod -R u=rwX,g=rX,o= /var/log/uwsgi/$app
ynh_check_global_uwsgi_config ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@$app.service" --quiet systemctl enable "uwsgi-app@$app.service" --quiet

View file

@ -62,6 +62,10 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public ynh_app_setting_delete --app=$app --key=is_public
fi fi
mkdir -p /var/log/uwsgi/$app
chown $app:root /var/log/uwsgi/$app
chmod -R u=rwX,g=rX,o= /var/log/uwsgi/$app
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
#================================================= #=================================================