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

[fix] Sources not replaced

This commit is contained in:
ljf (zamentur) 2020-07-13 10:52:07 +02:00 committed by GitHub
parent 95f4547511
commit dc14def38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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