fix: gitea admin no must-change-password

This commit is contained in:
ange 2024-05-15 19:14:47 +02:00
parent 41d089f0dc
commit 834dda8a79
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -16,7 +16,7 @@ spec:
command:
- bash
- -c
- 'gitea migrate && { gitea admin user change-password --username "$username" --password "$password" 2> /dev/null || gitea admin user create --admin --email "$email" --username "$username" --password "$password"; }'
- 'gitea migrate && { gitea admin user change-password --username "$username" --password "$password" --must-change-password=false 2> /dev/null || gitea admin user create --admin --email "$email" --username "$username" --password "$password" --must-change-password=false; }'
volumeMounts:
- name: config
mountPath: /etc/gitea/app.ini