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

Remove sudo

This commit is contained in:
ericgaspar 2020-12-09 17:41:43 +01:00
parent 28a64f3af9
commit eeb294dceb
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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