Fix PIDFILE folder check

This commit is contained in:
nicoschtein 2013-08-01 04:04:45 -03:00
parent 038ec39e55
commit a84c91f886

View File

@ -55,10 +55,9 @@ PIDFILE="${BASEPATH}/${SUBFOLDER}/${ME}.pid"
PIDFILE=$(readlink -m "$PIDFILE")
# Create folders recursively if necessary
if
!(mkdir -p $( dirname $PIDFILE) )
then
if ! $(mkdir -p $( dirname $PIDFILE)); then
echo "Error creating PIDFILE path: $( dirname $PIDFILE )"
exit 1
fi
# Find scripts path