diff --git a/scripts/install b/scripts/install index 4e8078e..2bbe49f 100644 --- a/scripts/install +++ b/scripts/install @@ -196,6 +196,13 @@ ynh_print_info "Configuring log rotation..." # Use logrotate to manage application logfile(s) ynh_use_logrotate "/home/yunohost.app/${app}/storage/logs/peertube.log" +#================================================= +# ADVERTISE SERVICE IN ADMIN PANEL +#================================================= + +# if using yunohost version 3.2 or more in the 'manifest.json', a description can be added +yunohost service add $app --description "$app daemon for Peertube" --log "/home/yunohost.app/${app}/storage/logs/peertube.log" + #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/restore b/scripts/restore index f1e0610..c93c499 100644 --- a/scripts/restore +++ b/scripts/restore @@ -121,6 +121,12 @@ ynh_print_info "Restoring the systemd configuration..." ynh_restore_file "/etc/systemd/system/$app.service" systemctl enable "$app.service" +#================================================= +# ADVERTISE SERVICE IN ADMIN PANEL +#================================================= + +yunohost service add $app --description "$app daemon for Peertube" --log "/home/yunohost.app/${app}/storage/logs/peertube.log" + #================================================= # RESTORE THE LOGROTATE CONFIGURATION #=================================================