diff --git a/manifest.json b/manifest.json index a4bbba7..a51509e 100644 --- a/manifest.json +++ b/manifest.json @@ -23,6 +23,7 @@ "install" : [ { "name": "server", + "type": "string", "ask": { "en": "What is the domain name of the host server where backups will be sent?", "fr": "Quel est le nom de domaine du serveur distant sur lequel seront envoyés les sauvegardes ?" @@ -35,6 +36,7 @@ }, { "name": "ssh_user", + "type": "string", "ask": { "en": "Which SSH username should be used to connect to the host server?", "fr": "Quel utilisateur faut-il utiliser pour se connecter au serveur distant ?" @@ -77,6 +79,7 @@ }, { "name": "apps", + "type": "string", "ask": { "en": "Which apps should Borg backup (list separated by comma or 'all')?", "fr": "Quelles applications doivent être sauvegardées par Borg (liste séparée par virgule ou 'all' ?" @@ -85,6 +88,7 @@ }, { "name": "on_calendar", + "type": "string", "ask": { "en": "With which regular time schedule should the backups be performed? (see systemd OnCalendar format)", "fr": "À quelle fréquence les sauvegardes doivent-elles être effectuées ? (voir le format OnCalendar de systemd)" diff --git a/scripts/install b/scripts/install index fd39233..9a73927 100755 --- a/scripts/install +++ b/scripts/install @@ -70,7 +70,7 @@ systemctl start $app.timer #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app +yunohost service add $app --description="Deduplicating backup program" #================================================= # GENERATE SSH KEY diff --git a/scripts/remove b/scripts/remove index 07a2ab1..b57c396 100755 --- a/scripts/remove +++ b/scripts/remove @@ -15,6 +15,17 @@ source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME +#================================================= +# REMOVE SERVICE INTEGRATION IN YUNOHOST +#================================================= + +# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) +if ynh_exec_warn_less yunohost service status $app >/dev/null +then + ynh_script_progression --message="Removing $app service integration..." + yunohost service remove $app +fi + #================================================= # REMOVE DEPENDENCIES #================================================= @@ -26,7 +37,7 @@ ynh_remove_app_dependencies # REMOVE FILES #================================================= systemctl stop $app.timer -systemctl disable $app.timer +systemctl disable $app.timer --quiet ynh_remove_systemd_config ynh_secure_remove "/etc/systemd/system/$app.timer" ynh_secure_remove "/usr/local/bin/backup-with-$app" diff --git a/scripts/upgrade b/scripts/upgrade index 02c8408..79ee142 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,7 +87,7 @@ systemctl start $app.timer # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app +yunohost service add $app --description="Deduplicating backup program" #================================================= # END OF SCRIPT