From 037146b8fff98165b76b2f5c81fa6cf70840c376 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Tue, 5 May 2015 20:44:00 +0000 Subject: [PATCH] Fixes on deploy.sh --- orchestra/management/commands/setupnginx.py | 2 +- scripts/container/deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/management/commands/setupnginx.py b/orchestra/management/commands/setupnginx.py index 7f4b39f3..f7258456 100644 --- a/orchestra/management/commands/setupnginx.py +++ b/orchestra/management/commands/setupnginx.py @@ -70,7 +70,7 @@ class Command(BaseCommand): cert_path = options.get('cert_path') key_path = options.get('cert_key_path') - run('mkdir -p %s' % os.path.basename(cert_path)) + run('mkdir -p %s' % os.path.dirname(cert_path)) exists = os.path.isfile(cert_path) if not override and exists: diff --git a/scripts/container/deploy.sh b/scripts/container/deploy.sh index 3dac0186..efd2fbc6 100755 --- a/scripts/container/deploy.sh +++ b/scripts/container/deploy.sh @@ -117,7 +117,7 @@ run "$PYTHON_BIN $MANAGE setupnginx --user $USER --noinput" run "service nginx start" # Apply changes on related services -run "$PYTHON_BIN $MANAGE reloadservices" +run "$PYTHON_BIN $MANAGE restartservices" # Create orchestra superuser cat <<- EOF | $PYTHON_BIN $MANAGE shell