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:
parent
28a64f3af9
commit
eeb294dceb
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue