From dc14def38ad9ad343e0639da326eda76b3279a63 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 13 Jul 2020 10:52:07 +0200 Subject: [PATCH] [fix] Sources not replaced --- scripts/upgrade | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 8a24bbb..74aa886 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,3 +46,18 @@ if is_stretch; then install_borg_with_pip fi + +#================================================= +# SETUP THE BACKUP METHOD +#================================================= +ynh_configure backup_method "/etc/yunohost/hooks.d/backup_method/05-${app}_app" + +#================================================= +# CONFIGURE CRON +#================================================= +ynh_configure backup-with-borg "/usr/local/bin/backup-with-$app" +chmod u+x "/usr/local/bin/backup-with-$app" +ynh_add_systemd_config +ynh_configure systemd.timer "/etc/systemd/system/$app.timer" +systemctl enable $app.timer +systemctl start $app.timer