mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-13 03:44:09 +02:00
Support setting NEXTCLOUD_AUTH_TOKEN
Allows to set up the nextcloud auth token during install. Purpose is to make the install smoother by exposing it and have server info and metrics available to verify the status of the install. Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
parent
3f42156a07
commit
40e2f4ac51
8 changed files with 36 additions and 0 deletions
|
@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
|
||||
done
|
||||
fi
|
||||
file_env NEXTCLOUD_AUTH_TOKEN
|
||||
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
|
||||
echo "setting auth token"
|
||||
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
|
||||
fi
|
||||
else
|
||||
echo "Please run the web-based installer on first connect!"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue