mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
systemd: don't fail on activation when services changed
The diff command exits with status 1 when detecting differences. Because of 'set -e', this caused the activation to fail.
This commit is contained in:
committed by
Robert Helgesson
parent
42ae135d38
commit
286d678785
@@ -147,7 +147,7 @@ in
|
||||
--old-line-format='-%L' \
|
||||
--unchanged-line-format=' %L' \
|
||||
"$oldServiceFiles" "$newServiceFiles" \
|
||||
> $servicesDiffFile
|
||||
> $servicesDiffFile || true
|
||||
|
||||
local -a maybeRestart=( $(grep '^ ' $servicesDiffFile | cut -c2-) )
|
||||
local -a toStop=( $(grep '^-' $servicesDiffFile | cut -c2-) )
|
||||
|
||||
Reference in New Issue
Block a user