diff --git a/conf/systemd.service b/conf/systemd.service index 05686e7..583ac8f 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -4,6 +4,7 @@ After=network.target [Service] Type=oneshot +WorkingDirectory=__FINALPATH__ ExecStart=__FINALPATH__/yunomonitor.py -c __FINALPATH__/conf/__APP__.yml User=root Group=root diff --git a/scripts/upgrade b/scripts/upgrade index 8ccc982..22aae04 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,7 +128,7 @@ chmod u+x $final_path/yunomonitor.py #================================================= ynh_script_progression --message="Configuring SSOwat..." --time --weight=1 -ynh_app_setting_set --app=$app --key=unprotected_uris --value="/.well-known/yunomonitor/" +ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" #================================================= # RELOAD NGINX