mirror of
https://github.com/YunoHost-Apps/gemserv_ynh.git
synced 2024-09-03 18:36:27 +02:00
Merge pull request #32 from YunoHost-Apps/testing
Automated testing -> master
This commit is contained in:
commit
d7cb2fdc2c
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