Skip to content

Commit

Permalink
postgres: don't fail if any services fails to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Oct 28, 2024
1 parent 68f3778 commit dcfc097
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ in
exit 2
fi
systemctl stop postgresql ${lib.concatStringsSep " " cfgu.stopServices}
# don't fail when any unit cannot be stopped
systemctl stop ${lib.concatStringsSep " " cfgu.stopServices} || true
systemctl stop postgresql
install -d -m 0700 -o postgres -g postgres "${newData}"
cd "${newData}"
Expand Down

0 comments on commit dcfc097

Please sign in to comment.