Update healthchecks-install.sh
This commit is contained in:
parent
562aa611f0
commit
835090396a
@ -89,16 +89,16 @@ SITE_NAME=Mychecks
|
|||||||
SITE_ROOT=http://localhost:8000
|
SITE_ROOT=http://localhost:8000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
python3 manage.py migrate
|
# python3 manage.py migrate
|
||||||
cat <<EOF | python3 /opt/healthchecks/manage.py shell
|
# cat <<EOF | python3 /opt/healthchecks/manage.py shell
|
||||||
from django.contrib.auth import get_user_model
|
# from django.contrib.auth import get_user_model
|
||||||
UserModel = get_user_model()
|
# UserModel = get_user_model()
|
||||||
user = UserModel.objects.create_user('admin', password='$DB_PASS')
|
# user = UserModel.objects.create_user('admin', password='$DB_PASS')
|
||||||
user.is_superuser = True
|
# user.is_superuser = True
|
||||||
user.is_staff = True
|
# user.is_staff = True
|
||||||
user.save()
|
# user.save()
|
||||||
EOF
|
# EOF
|
||||||
./manage.py createsuperuser
|
# ./manage.py createsuperuser
|
||||||
|
|
||||||
msg_ok "Installed healthchecks"
|
msg_ok "Installed healthchecks"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user