1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix: linter warnings

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2021-02-27 22:49:02 +01:00
parent 7d6135a945
commit 388835b1f9
4 changed files with 11 additions and 12 deletions

View file

@ -72,12 +72,12 @@ ynh_add_systemd_config --service=${app}_check_read_data --template=systemd_check
ynh_configure systemd.timer "/etc/systemd/system/${app}.timer"
ynh_configure systemd_check.timer "/etc/systemd/system/${app}_check.timer"
ynh_configure systemd_check_read_data.timer "/etc/systemd/system/${app}_check_read_data.timer"
systemctl disable ${app}.service
systemctl disable ${app}_check.service
systemctl disable ${app}_check_read_data.service
systemctl enable ${app}.timer
systemctl enable ${app}_check.timer
systemctl enable ${app}_check_read_data.timer
systemctl disable --quiet ${app}.service
systemctl disable --quiet ${app}_check.service
systemctl disable --quiet ${app}_check_read_data.service
systemctl enable --quiet ${app}.timer
systemctl enable --quiet ${app}_check.timer
systemctl enable --quiet ${app}_check_read_data.timer
systemctl start ${app}.timer
systemctl start ${app}_check.timer
systemctl start ${app}_check_read_data.timer

View file

@ -27,7 +27,7 @@ ynh_remove_app_dependencies
#=================================================
ynh_script_progression --message="Removing files" --weight=2
systemctl stop ${app}.timer
systemctl disable ${app}.timer
systemctl --quiet disable ${app}.timer
ynh_remove_systemd_config --service=${app}
ynh_remove_systemd_config --service=${app}_check
ynh_remove_systemd_config --service=${app}_check_read_data

View file

@ -41,10 +41,9 @@ mkdir -p /usr/share/yunohost/backup_method
ynh_restore
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
# ENABLE TIMER
#=================================================
yunohost service add $app
systemctl enable $app.timer
systemctl --quiet enable $app.timer
systemctl start $app.timer
#yunohost service add $app.timer
#yunohost service enable $app.timer
@ -53,5 +52,5 @@ systemctl start $app.timer
#=================================================
# RESTORE SYSTEMD
#=================================================
systemctl enable $app.service
systemctl --quiet enable $app.service

View file

@ -50,7 +50,7 @@ ynh_abort_if_errors
if grep "restic.timer" /etc/yunohost/services.yml > /dev/null ; then
yunohost service remove $app.timer
systemctl enable $app.timer
systemctl --quiet enable $app.timer
systemctl start $app.timer
fi