1
0
Fork 0
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:
OniriCorpe 2024-02-13 02:33:25 +01:00 committed by Félix Piédallu
parent d573346dfd
commit f5697c0cdd
3 changed files with 9 additions and 0 deletions

View file

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

View file

@ -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"
#=================================================

View file

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