diff --git a/templates/gitea/init.yaml b/templates/gitea/init.yaml index 8927ba7..1bcd4e6 100644 --- a/templates/gitea/init.yaml +++ b/templates/gitea/init.yaml @@ -123,7 +123,7 @@ stringData: # should add it to prevent requiring frequent admin password resets. local -a change_args change_args=(--username "${GITEA_ADMIN_USERNAME}" --password "${GITEA_ADMIN_PASSWORD}") - if gitea admin user change-password --help | grep -qF -- '--must-change-password'; then + if gitea admin user change-password --help | grep -F -- '--must-change-password' >/dev/null; then change_args+=(--must-change-password=false) fi gitea admin user change-password "${change_args[@]}"