diff --git a/manifest.json b/manifest.json index 6ce468a..2072a73 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Backup your server with borg.", "fr": "Sauvegarder votre serveur avec borg." }, - "version": "1.0.2", + "version": "1.0.3", "url": "https://borgbackup.readthedocs.io", "license": "BSD-3-Clause", "maintainer": { diff --git a/scripts/upgrade b/scripts/upgrade index ea436f8..c8411ec 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,6 +33,8 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -yunohost service remove $app.timer -systemctl enable $app.timer -systemctl start $app.timer +if grep "borg.timer" /etc/yunohost/services.yml > /dev/null ; then + yunohost service remove $app.timer + systemctl enable $app.timer + systemctl start $app.timer +fi