Add admin password reset script and docs

Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
Raghav
2026-04-17 09:06:32 +05:30
parent 08990f6420
commit d1245fac70
2 changed files with 62 additions and 0 deletions

View File

@ -64,6 +64,21 @@ This script will:
```bash
./scripts/renew-production-tls.sh
```
## Admin password reset
List existing users:
```bash
docker exec --user www-data nextcloud-app php occ user:list
```
Reset password using helper script (interactive prompt):
```bash
./scripts/reset-admin-password.sh admin
```
Reset password non-interactively (for automation):
```bash
NEW_NEXTCLOUD_PASSWORD={{NEW_NEXTCLOUD_PASSWORD}} ./scripts/reset-admin-password.sh admin
```
You can target a different username by passing it as the first argument.
## Useful commands
Start/update containers:
```bash