diff --git a/scripts/upgrade b/scripts/upgrade index c8411ec..2a1e5fa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,8 +33,9 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors + 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 +fi \ No newline at end of file