diff --git a/modules/server/containers/apps/gitea.nix b/modules/server/containers/apps/gitea.nix index 6d15cfa..0799bd5 100644 --- a/modules/server/containers/apps/gitea.nix +++ b/modules/server/containers/apps/gitea.nix @@ -113,7 +113,7 @@ in { script = pkgs.writeShellScript "setup" '' # Define the command wrapper GT="${pkgs.podman}/bin/podman --events-backend=none exec -u git gitea-server gitea" - GTR="${pkgs.podman}/bin/podman --events-backend=none exec gitea-runner ./act_runner" + GTR="${pkgs.podman}/bin/podman --events-backend=none exec -u git gitea-runner ./act_runner" $GT admin user create --username "$DEFAULT_ADMIN_USERNAME" --password "$DEFAULT_ADMIN_PASSWORD" --email "$DEFAULT_ADMIN_EMAIL" --admin || true @@ -129,8 +129,8 @@ in { ${lib.optionalString (serverCfg.containers ? authentik) '' - $GT admin auth list delete --id 1 - $GT admin auth add_ldap --name Authentik --host authentik-ldap --port 3389 --security-protocol unencrypted \ + $GT admin auth delete --id 1 + $GT admin auth add-ldap --name Authentik --host authentik-ldap --port 3389 --security-protocol unencrypted \ --bind-dn "cn=ldap-service,ou=users,${LDAP_DC_DOMAIN}" --bind-password $DEFAULT_LDAP_PASSWORD \ --user-search-base "ou=users,${LDAP_DC_DOMAIN}" --user-filter "(|(username=%s)(email=%s))" \ --username-attribute "username" --firstname-attribute "givenName" --surname-attribute "sn" --email-attribute "mail" \