Set /usr/local/lib/nagcollect to "world readable" after update
authorAlexander Barton <alex@barton.de>
Mon, 20 Sep 2010 10:13:43 +0000 (12:13 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 20 Sep 2010 10:13:43 +0000 (12:13 +0200)
client/bin/nagcollect

index e88b309f1c02f7377c894a0c81e2fcb8e75e4c52..8f07f3827fc7dbb02599ae555e352c9d4ffe58b8 100755 (executable)
@@ -35,8 +35,10 @@ function refreshTestScripts()
                # Update local test scripts
                Msg "Extracting scripts ..."
                mkdir -p /usr/local/lib/nagcollect
-               tar xzf "$tmp" -C /usr/local/lib/nagcollect --exclude "._*" --exclude "." ; r=$?
+               tar xzf "$tmp" -C /usr/local/lib/nagcollect -po \
+                --exclude "._*" --exclude "." ; r=$?
        fi
+       chmod -R a+rX /usr/local/lib/nagcollect
        rm -f "$tmp"
        return $r
 }