Skip to content

Commit

Permalink
ad nauseum
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolai Langfeldt committed Mar 4, 2008
1 parent 9a52e39 commit 9509f37
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions server/munin-check.in
Expand Up @@ -129,13 +129,23 @@ function perm_ok(){
####
# main

for dir in @@HTMLDIR@@ @@DBDIR@@; do
echo "check $dir"
owner_ok $dir @@USER@@
echo "Check @@HTMLDIR@@"
owner_ok @@HTMLDIR@@ @@USER@@

for dir in @@DBDIR@@/*; do
# Do not check the plugin-state directory
case $dir in
*/plugin-state)
continue;;
esac
echo "check $dir"
owner_ok $dir @@USER@@
done

echo "Check @@LOGDIR@@"
norec=yes owner_ok @@LOGDIR@@ root

echo "Check miscelaneous"
for dir in @@DBDIR@@ @@DBDIR@@/datafile @@DBDIR@@/limits \
@@DBDIR@@/*.stats; do
norec=yes owner_ok $dir @@USER@@
Expand Down

0 comments on commit 9509f37

Please sign in to comment.