From: martin f. krafft Date: Sat, 19 Apr 2008 07:42:10 +0000 (+0200) Subject: factor out CHECKSDIR and move it to /etc X-Git-Tag: 0.4~8 X-Git-Url: https://git.madduck.net/code/molly-guard.git/commitdiff_plain/72faa1072d88a70da9f4993ef6446afbd26e18ef?ds=sidebyside factor out CHECKSDIR and move it to /etc --- diff --git a/shutdown b/shutdown index 10eac55..1668399 100755 --- a/shutdown +++ b/shutdown @@ -8,6 +8,7 @@ set -eu ME=molly-guard +CHECKSDIR=/etc/molly-guard/checks.d CMD="${0##*/}" EXEC="/sbin/$CMD" @@ -105,7 +106,7 @@ case "$CMD $ARGS" in ;; esac -run-parts --exit-on-error --arg $CMD $CHECK_ARGS /usr/share/molly-guard/checks.d +run-parts --exit-on-error --arg $CMD $CHECK_ARGS /etc/molly-guard/checks.d # run-parts won't return to us if there are failures, but I'm paranoid. if [ $? == 0 ]; then