Fixes on deploy.sh

This commit is contained in:
Marc Aymerich 2015-05-05 20:44:00 +00:00
parent eebad49b59
commit 037146b8ff
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class Command(BaseCommand):
cert_path = options.get('cert_path') cert_path = options.get('cert_path')
key_path = options.get('cert_key_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) exists = os.path.isfile(cert_path)
if not override and exists: if not override and exists:

View File

@ -117,7 +117,7 @@ run "$PYTHON_BIN $MANAGE setupnginx --user $USER --noinput"
run "service nginx start" run "service nginx start"
# Apply changes on related services # Apply changes on related services
run "$PYTHON_BIN $MANAGE reloadservices" run "$PYTHON_BIN $MANAGE restartservices"
# Create orchestra superuser # Create orchestra superuser
cat <<- EOF | $PYTHON_BIN $MANAGE shell cat <<- EOF | $PYTHON_BIN $MANAGE shell