Skip to content

Commit

Permalink
Using python3 from conda
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-noel committed Mar 12, 2024
1 parent 29d3839 commit 476b0bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion create_default_admin.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

python3 manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'admin')"
/opt/conda/bin/python3 manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'admin')"
printf "admin: admin\nadmin_email: [email protected]\n" >> /var/webmaboss/data/settings/config.yml
6 changes: 3 additions & 3 deletions create_default_db.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

python3 manage.py makemigrations api -v 2 "$@"
python3 manage.py migrate -v 2 "$@"
python3 manage.py collectstatic --noinput "$@" > /dev/null
/opt/conda/bin/python3 manage.py makemigrations api -v 2 "$@"
/opt/conda/bin/python3 manage.py migrate -v 2 "$@"
/opt/conda/bin/python3 manage.py collectstatic --noinput "$@" > /dev/null
if [ ! -f /var/webmaboss/data/settings/config.yml ]; then
random_string=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24`
printf "secret_key: %s\nallowed_hosts: ['*']\n" "$random_string"> /var/webmaboss/data/settings/config.yml
Expand Down

0 comments on commit 476b0bd

Please sign in to comment.