1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

[fix] Don't fail on missing yuno service

This commit is contained in:
ljf 2018-11-28 21:08:45 +01:00
parent 696c319ffe
commit ae6f3266d5
2 changed files with 6 additions and 4 deletions

View file

@ -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": {

View file

@ -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