diff --git a/scripts/install b/scripts/install index 1068d4f..be0c158 100644 --- a/scripts/install +++ b/scripts/install @@ -87,10 +87,10 @@ ynh_add_nginx_config # Create a dedicated NGINX config using the conf/nginx.conf template ynh_add_systemd_config --service="$app" --template="systemd.service" -yunohost service add "$app" --description="Digital signage system for high schools" --log="$log_file" +yunohost service add "$app" --description=Digital signage system for high schools --log="/var/log/$app/$app.log" # Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate "$log_file" +ynh_use_logrotate "/var/log/$app/$app.log" #================================================= # Start the app server via systemd diff --git a/scripts/restore b/scripts/restore index 6643707..0ca081f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -62,7 +62,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable "$app.service" --quiet -yunohost service add "$app" --description="Digital signage system for high schools" --log="$log_file" +yunohost service add "$app" --description="Digital signage system for high schools" --log="/var/log/$app/$app.log" ynh_restore_file --origin_path="/etc/logrotate.d/$app"