Skip to content
Browse files

Merge pull request #13 from adam12/bug/check_directories_are_writable

Ensure $PIDS and $LOGS directories are writable
  • Loading branch information...
2 parents 7bf893d + 3873ae4 commit 32822b3eb1506cd9b613ed6cf6e112a4f3ed30c4 @jgallen23 committed Jan 21, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/mongroup
View
8 bin/mongroup
@@ -86,9 +86,17 @@ read_config() {
abort $PIDS directory doesn\'t exist
fi
+ if [ ! -w $PIDS ]; then
+ abort $PIDS directory is not writable
+ fi
+
if [ ! -d $LOGS ]; then
abort $LOGS directory doesn\'t exist
fi
+
+ if [ ! -w $LOGS ]; then
+ abort $LOGS directory is not writable
+ fi
}
#

0 comments on commit 32822b3

Please sign in to comment.
Something went wrong with that request. Please try again.