systemd: don't fail on activation when services changed
diff exits with status 1 when detecting differences. Because of 'set -e', this caused the activation to fail.
This commit is contained in:
parent
5c098dc7ad
commit
e258a08347
|
@ -147,7 +147,7 @@ in
|
||||||
--old-line-format='-%L' \
|
--old-line-format='-%L' \
|
||||||
--unchanged-line-format=' %L' \
|
--unchanged-line-format=' %L' \
|
||||||
"$oldServiceFiles" "$newServiceFiles" \
|
"$oldServiceFiles" "$newServiceFiles" \
|
||||||
> $servicesDiffFile
|
> $servicesDiffFile || true
|
||||||
|
|
||||||
local -a maybeRestart=( $(grep '^ ' $servicesDiffFile | cut -c2-) )
|
local -a maybeRestart=( $(grep '^ ' $servicesDiffFile | cut -c2-) )
|
||||||
local -a toStop=( $(grep '^-' $servicesDiffFile | cut -c2-) )
|
local -a toStop=( $(grep '^-' $servicesDiffFile | cut -c2-) )
|
||||||
|
|
Loading…
Reference in a new issue