diff --git a/scripts/install b/scripts/install index 5158caf..39ebc2e 100755 --- a/scripts/install +++ b/scripts/install @@ -191,7 +191,7 @@ ynh_use_logrotate "$log_file" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add "$app" --log "${log_file}" +yunohost service add "$app" --log="${log_file}" #================================================= # GENERIC FINALIZATION @@ -200,9 +200,9 @@ yunohost service add "$app" --log "${log_file}" #================================================= # Set permissions to app files -sudo chown -R "$app" "$log_path" -sudo chown -R "$app" "$public_path" -sudo chown -R "$app" "$final_path" +chown -R "$app" "$log_path" +chown -R "$app" "$public_path" +chown -R "$app" "$final_path" #================================================= # SETUP SYSTEMD diff --git a/scripts/restore b/scripts/restore index d1a21aa..23b36a9 100755 --- a/scripts/restore +++ b/scripts/restore @@ -102,7 +102,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add "$app" --log "/var/log/$app/pyinventory.log" +yunohost service add "$app" --log="${log_file}" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 74c621e..d244b34 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -180,7 +180,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add "$app" --log "${log_file}" +yunohost service add "$app" --log="${log_file}" #================================================= # GENERIC FINALIZATION @@ -189,9 +189,9 @@ yunohost service add "$app" --log "${log_file}" #================================================= # Set permissions to app files -sudo chown -R "$app" "$log_path" -sudo chown -R "$app" "$public_path" -sudo chown -R "$app" "$final_path" +chown -R "$app" "$log_path" +chown -R "$app" "$public_path" +chown -R "$app" "$final_path" #================================================= # SETUP SSOWAT