1
0
Fork 0
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:
Salamandar 2024-06-23 19:25:11 +02:00 committed by GitHub
commit d7cb2fdc2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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