mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
Testing (#16)
* [fix] Check process * [fix] Timers are not supported by yunohost * [fix] No yuno service to remove * [fix] Don't fail on missing yuno service
This commit is contained in:
parent
d5ae901aac
commit
3471d211d8
3 changed files with 9 additions and 7 deletions
|
@ -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": {
|
||||
|
|
|
@ -28,9 +28,8 @@ ynh_remove_backports
|
|||
#=================================================
|
||||
# REMOVE FILES
|
||||
#=================================================
|
||||
yunohost service stop $app.timer
|
||||
yunohost service disable $app.timer
|
||||
yunohost service remove $app.timer
|
||||
systemctl stop $app.timer
|
||||
systemctl disable $app.timer
|
||||
ynh_remove_systemd_config
|
||||
ynh_secure_remove "/etc/systemd/system/$app.timer"
|
||||
ynh_secure_remove "/usr/local/bin/backup-with-$app"
|
||||
|
|
|
@ -33,6 +33,9 @@ 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
|
Loading…
Add table
Reference in a new issue