Skip to content

Commit

Permalink
fix create rundir bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jan 4, 2012
1 parent 7f13878 commit ea2a8bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxvipctl
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ function mxvip_stop() {


function create_run_dir_if_not_exists() {
if [ ! -d $rundir ] ; then
if [ ! -d ${RUNDIR} ] ; then
mkdir -m 0700 ${RUNDIR}
fi

if [ ! -O $rundir ] ; then
if [ ! -O ${RUNDIR} ] ; then
echo >&2 "${RUNDIR}: wrong owner: possible hack attempt? exiting.."
exit 1
fi
Expand Down

0 comments on commit ea2a8bd

Please sign in to comment.