From 834dda8a79f51e6b58f7ab2d2a7063de821a3ce0 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 19:14:47 +0200 Subject: [PATCH] fix: gitea admin no must-change-password --- manifests/common/job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/common/job.yaml b/manifests/common/job.yaml index 9bf186f..106e68d 100644 --- a/manifests/common/job.yaml +++ b/manifests/common/job.yaml @@ -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