feat: add nc_{add-indices,htaccess,upgrade}.sh scripts
Some checks failed
checks / pre-commit (push) Successful in 53s
checks / k8s (push) Successful in 25s
checks / tflint (push) Successful in 22s
OpenTofu deployments / authentik (push) Successful in 48s
OpenTofu deployments / adguard (push) Failing after 52s

This commit is contained in:
cătălin 2024-08-07 14:20:45 +02:00
commit 3f69361a1d
No known key found for this signature in database
3 changed files with 15 additions and 0 deletions

5
scripts/nc-add-indices.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
script_dir=$(dirname "$(readlink -f "$0")")
cd "$script_dir/../docker/nextcloud" || exit 1
docker compose exec nextcloud sudo -u www-data php occ db:add-missing-indices

5
scripts/nc-htaccess.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
script_dir=$(dirname "$(readlink -f "$0")")
cd "$script_dir/../docker/nextcloud" || exit 1
docker compose exec nextcloud sudo -u www-data php occ maintenance:update:htaccess

5
scripts/nc-upgrade.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
script_dir=$(dirname "$(readlink -f "$0")")
cd "$script_dir/../docker/nextcloud" || exit 1
docker compose exec nextcloud sudo -u www-data php occ upgrade