Update healthchecks-install.sh

This commit is contained in:
CanbiZ 2025-05-21 15:23:07 +02:00
parent 562aa611f0
commit 835090396a

View File

@ -89,16 +89,16 @@ SITE_NAME=Mychecks
SITE_ROOT=http://localhost:8000
EOF
python3 manage.py migrate
cat <<EOF | python3 /opt/healthchecks/manage.py shell
from django.contrib.auth import get_user_model
UserModel = get_user_model()
user = UserModel.objects.create_user('admin', password='$DB_PASS')
user.is_superuser = True
user.is_staff = True
user.save()
EOF
./manage.py createsuperuser
# python3 manage.py migrate
# cat <<EOF | python3 /opt/healthchecks/manage.py shell
# from django.contrib.auth import get_user_model
# UserModel = get_user_model()
# user = UserModel.objects.create_user('admin', password='$DB_PASS')
# user.is_superuser = True
# user.is_staff = True
# user.save()
# EOF
# ./manage.py createsuperuser
msg_ok "Installed healthchecks"