This commit is contained in:
amartynov 2014-07-07 11:28:29 +04:00
commit ee0746dd7f

View File

@ -186,8 +186,8 @@ And copy your ec2 certificate 'ec2.pem' into /devops/.ssh/
env=production env=production
start() { start() {
echo "Starting devops service" echo "Starting devops service"
PIDDIR="${pid_file%/?*}" PIDDIR=`dirname $pid_file`
if [ ! -f $PIDDIR ]; then if [ ! -d $PIDDIR ]; then
mkdir -p $PIDDIR mkdir -p $PIDDIR
chown $user $PIDDIR chown $user $PIDDIR
fi fi