mirror of
https://github.com/YunoHost-Apps/gemserv_ynh.git
synced 2024-09-03 18:36:27 +02:00
fix log folder perms
This commit is contained in:
parent
d573346dfd
commit
f5697c0cdd
3 changed files with 9 additions and 0 deletions
|
@ -89,6 +89,9 @@ ynh_script_progression --message="Adding system configurations related to $app..
|
|||
ynh_add_systemd_config
|
||||
yunohost service add "$app" --description="$app daemon" --log="/var/log/$app/$app.log" --needs_exposed_ports="1965"
|
||||
|
||||
mkdir -p "/var/log/$app"
|
||||
chmod 640 "/var/log/$app"
|
||||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@ ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
|||
systemctl enable "$app.service" --quiet
|
||||
yunohost service add "$app" --description="$app daemon" --log="/var/log/$app/$app.log" --needs_exposed_ports="1965"
|
||||
|
||||
mkdir -p "/var/log/$app"
|
||||
chmod 640 "/var/log/$app"
|
||||
|
||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -111,6 +111,9 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
|
|||
ynh_add_systemd_config
|
||||
yunohost service add "$app" --description="$app daemon" --log="/var/log/$app/$app.log" --needs_exposed_ports="1965"
|
||||
|
||||
mkdir -p "/var/log/$app"
|
||||
chmod 640 "/var/log/$app"
|
||||
|
||||
# Use logrotate to manage app-specific logfile(s)
|
||||
ynh_use_logrotate --non-append
|
||||
|
||||
|
|
Loading…
Reference in a new issue