Files
pretix/abra.sh
kolaente 93b40b1e29 fix: update cron template version
Fixes a regression introduced in d67f375d47
2025-10-11 21:02:34 +02:00

17 lines
424 B
Bash

export PRETIX_CONFIG_VERSION=v2
export CRON_ENTRYPOINT_VERSION=v2
export DB_ENTRYPOINT_VERSION=v2
export PG_BACKUP_VERSION=v1
change_adminpass(){
password=$(cat /run/secrets/admin_pass)
~/src/manage.py shell -c """
from django.contrib.auth import get_user_model
UserModel = get_user_model()
u = UserModel.objects.get(email='admin@localhost')
u.set_password('$password')
u.save()
"""
echo "Changed admin password"
}