mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
add log file to the service in restore script too
This commit is contained in:
parent
285999f9ec
commit
68d887fa7d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ chown "$app:$app" "$install_dir/logging.conf"
|
|||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||
yunohost service add $app --description="Deduplicating backup program" --test_status="systemctl show $app.service -p ActiveState --value | grep -v failed"
|
||||
yunohost service add $app --description="Deduplicating backup program" --test_status="systemctl show $app.service -p ActiveState --value | grep -v failed" --log "/var/log/$app/borg.log"
|
||||
# Disable the service, this is to prevent the service from being triggered at boot time
|
||||
systemctl disable $app.service --quiet
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue