Fixes on deployment
This commit is contained in:
parent
13307adbcd
commit
c3b0e26fa9
|
@ -120,7 +120,7 @@ function main () {
|
||||||
surun "python3 -W ignore manage.py migrate $noinput"
|
surun "python3 -W ignore manage.py migrate $noinput"
|
||||||
if [[ $noinput == '--noinput' ]]; then
|
if [[ $noinput == '--noinput' ]]; then
|
||||||
# Create orchestra superuser
|
# Create orchestra superuser
|
||||||
cat <<- EOF | $PYTHON_BIN $MANAGE shell
|
cat <<- EOF | surun "python3 -W ignore manage.py shell"
|
||||||
from orchestra.contrib.accounts.models import Account
|
from orchestra.contrib.accounts.models import Account
|
||||||
if not Account.objects.filter(username="$user").exists():
|
if not Account.objects.filter(username="$user").exists():
|
||||||
print('Creating orchestra superuser')
|
print('Creating orchestra superuser')
|
||||||
|
|
Loading…
Reference in New Issue