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 e88b309..8f07f38 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
 }