Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/run-nc.sh2
-rwxr-xr-xdocker/run-ncdocker.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/run-nc.sh b/docker/run-nc.sh
index 6f3dcd34..58017440 100755
--- a/docker/run-nc.sh
+++ b/docker/run-nc.sh
@@ -64,7 +64,7 @@ test -e /data/config && {
# Trusted Domain ( local IP )
IFACE=$( ip r | grep "default via" | awk '{ print $5 }' )
-IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
+IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(\.\d{1,3}){3}' | head -1 )
sudo -u www-data php $OCC config:system:set trusted_domains 2 --value="$IP"
echo "Starting Apache"
diff --git a/docker/run-ncdocker.sh b/docker/run-ncdocker.sh
index d30f07c3..f7cb5def 100755
--- a/docker/run-ncdocker.sh
+++ b/docker/run-ncdocker.sh
@@ -2,6 +2,6 @@
# Initial Trusted Domain
IFACE=$( ip r | grep "default via" | awk '{ print $5 }' )
-IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
+IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(\.\d{1,3}){3}' | head -1 )
docker run -d -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi $IP