Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Update docker exec user for linuxserver
Browse files Browse the repository at this point in the history
  • Loading branch information
adrw committed Jan 17, 2020
1 parent eda2128 commit d8a6e98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions set_configuration.sh
Expand Up @@ -3,13 +3,13 @@
set -x

# Configure Nextcloud
docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set trusted_domains 0 --value="nextcloud_nginx"
docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set trusted_domains 1 --value="${LOCAL:-192.168.0.116:40480}" # local address
docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set trusted_domains 2 --value="${DOMAIN:-cloud.adrw.xyz}" # remote address
echo Trusted Domains $(docker exec -u www-data nextcloud_app php occ --no-warnings config:system:get trusted_domains)
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set trusted_domains 0 --value="nextcloud_nginx"
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set trusted_domains 1 --value="${LOCAL:-192.168.0.116:40480}" # local address
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set trusted_domains 2 --value="${DOMAIN:-cloud.adrw.xyz}" # remote address
echo Trusted Domains $(docker exec -u abc nextcloud_app php occ --no-warnings config:system:get trusted_domains)

docker exec -u www-data nextcloud_app php occ --no-warnings app:install onlyoffice
docker exec -u abc nextcloud_app php occ --no-warnings app:install onlyoffice

docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://nextcloud_onlyoffice/"
docker exec -u www-data nextcloud_app php occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud_nginx/"
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://nextcloud_onlyoffice/"
docker exec -u abc nextcloud_app php occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud_nginx/"

0 comments on commit d8a6e98

Please sign in to comment.