X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-unowned-file-status;h=56331ef896a1712090a94f655a2ff059cf4f878a;hb=0186eaeb34890c5eacc7baead5466be9bfae03e1;hp=cc4e812bca32b07b060817120dc26b7c06a435d4;hpb=e4b50b7ffb43e15e014e00939e785a64227b6687;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index cc4e812..56331ef 100755 --- a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status +++ b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status @@ -25,9 +25,7 @@ CUTOFF=40 STATUSDIR=/var/cache/dsa/nagios STATUS="${STATUSDIR}"/nouser -if [ ! -d "${STATUSDIR}" ]; then - mkdir -p "${STATUSDIR}" -fi +mkdir -p "${STATUSDIR}" tmp=`tempfile` trap "rm -f '$tmp'" exit