evolinux-base: backup-server-state: fix systemctl invocation

This commit is contained in:
Jérémy Lecour 2022-01-28 16:25:28 +01:00 committed by Jérémy Lecour
parent 6d5aa67045
commit 8beb1e7460
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ backup_systemctl() {
systemctl_bin=$(command -v systemctl)
if [ -n "${systemctl_bin}" ]; then
last_result=$(${systemctl_bin} systemctl --no-legend --state=failed --type=service > "${backup_dir}/systemctl-failed-services.txt")
last_result=$(${systemctl_bin} --no-legend --state=failed --type=service > "${backup_dir}/systemctl-failed-services.txt")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then