From 950ea6fca635c4e6d0585f071e3416ccf9c42248 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Fri, 22 Mar 2019 15:00:40 +0100 Subject: [PATCH] Check if /etc/.git has the proper rights --- evocheck.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evocheck.sh b/evocheck.sh index dcc6934..2690d02 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -196,6 +196,9 @@ fi # Check if /etc/.git/ has read/write permissions for root only. if [ "$IS_GITPERMS" = 1 ]; then + test -d /etc/.git && [ "$(stat -f %p /etc/.git/)" = "40700" ] || echo 'IS_GITPERMS FAILED!' + if [[ "$VERBOSE" == 1 ]]; then + echo "The directiry /etc/.git sould be in 700" fi fi