Fixes on deploy.sh
This commit is contained in:
parent
eebad49b59
commit
037146b8ff
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue