forked from coop-cloud/nextcloud
remove post_install_occ
This commit is contained in:
@ -82,9 +82,6 @@ DEFAULT_QUOTA="10 GB"
|
|||||||
# AUTHENTIK_DOMAIN=authentik.example.com
|
# AUTHENTIK_DOMAIN=authentik.example.com
|
||||||
# SECRET_AUTHENTIK_SECRET_VERSION=v1
|
# SECRET_AUTHENTIK_SECRET_VERSION=v1
|
||||||
# SECRET_AUTHENTIK_ID_VERSION=v1
|
# SECRET_AUTHENTIK_ID_VERSION=v1
|
||||||
# OCC_CMDS="app:disable dashboard"
|
|
||||||
# OCC_CMDS="$OCC_CMDS|config:app:set sociallogin auto_create_groups --value 1"
|
|
||||||
# OCC_CMDS="$OCC_CMDS|config:app:set sociallogin hide_default_login --value 1"
|
|
||||||
|
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.fulltextsearch.yml"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.fulltextsearch.yml"
|
||||||
#SECRET_ELASTICSEARCH_PASSWORD_VERSION=v1
|
#SECRET_ELASTICSEARCH_PASSWORD_VERSION=v1
|
||||||
|
|||||||
19
README.md
19
README.md
@ -64,21 +64,18 @@ AUTHENTIK_ID_NAME=authentik_example_com_nextcloud_id_v1 # the same as in authen
|
|||||||
|
|
||||||
`abra app cmd <app-name> app set_authentik`
|
`abra app cmd <app-name> app set_authentik`
|
||||||
|
|
||||||
### Disable Dashboard
|
|
||||||
|
|
||||||
Disable dashboard app since it is so corporate:
|
|
||||||
|
|
||||||
`abra app config <app-name>`
|
|
||||||
Configure the following envs:
|
|
||||||
```
|
|
||||||
OCC_CMDS="app:disable dashboard"
|
|
||||||
```
|
|
||||||
`abra app cmd <app-name> app post_install_occ`
|
|
||||||
|
|
||||||
## Running `occ`
|
## Running `occ`
|
||||||
|
|
||||||
`abra app cmd <app-name> app run_occ '"user:list --help"'`
|
`abra app cmd <app-name> app run_occ '"user:list --help"'`
|
||||||
|
|
||||||
|
Read more about [occ command here](https://docs.nextcloud.com/server/stable/admin_manual/occ_command.html).
|
||||||
|
|
||||||
|
### Disable Dashboard
|
||||||
|
|
||||||
|
To disable dashboard app (since it is so corporate):
|
||||||
|
|
||||||
|
`abra app cmd <app-name> app run_occ '"app:disable dashboard"'`
|
||||||
|
|
||||||
## Default user files
|
## Default user files
|
||||||
|
|
||||||
- Follow [these docs](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/default_files_configuration.html) to set the default files list for each user in the Files app
|
- Follow [these docs](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/default_files_configuration.html) to set the default files list for each user in the Files app
|
||||||
|
|||||||
7
abra.sh
7
abra.sh
@ -12,13 +12,6 @@ run_occ() {
|
|||||||
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"
|
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install_occ() {
|
|
||||||
IFS='|' read -ra CMD <<<"$OCC_CMDS"
|
|
||||||
for cmd in "${CMD[@]}"; do
|
|
||||||
run_occ "$cmd"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
install_apps() {
|
install_apps() {
|
||||||
install_apps="$@"
|
install_apps="$@"
|
||||||
if [ -z "$install_apps" ]; then
|
if [ -z "$install_apps" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user