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
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-30 08:51:01 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-30 08:51:01 +0300
commit9e212e69b94403a7614abd9e9d9d9fe6bbd912a4 (patch)
tree1a87987ddac2aa9b397aed512851b57c253473e1
parenta8cfd17984c0bed10bc0247baf4fe3eb0068bff3 (diff)
fix nextcloud-domain service with ipv6v0.24.7
-rwxr-xr-xdocker/run-nc.sh2
-rw-r--r--nextcloudpi.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/run-nc.sh b/docker/run-nc.sh
index e697b64c..eed13840 100755
--- a/docker/run-nc.sh
+++ b/docker/run-nc.sh
@@ -54,7 +54,7 @@ cd /var/www/nextcloud/
# Trusted Domain ( as an argument )
[[ "$@" != "" ]] && {
- IP=$( grep -oP '\d{1,3}(.\d{1,3}){3}' <<< "$1" ) # validate that the first argument is a valid IP
+ IP=$( grep -oP '\d{1,3}(\.\d{1,3}){3}' <<< "$1" ) # validate that the first argument is a valid IP
if [[ "$IP" != "" ]]; then
sudo -u www-data php occ config:system:set trusted_domains 1 --value=$IP
else
diff --git a/nextcloudpi.sh b/nextcloudpi.sh
index ffc9232c..5b4f9110 100644
--- a/nextcloudpi.sh
+++ b/nextcloudpi.sh
@@ -110,7 +110,7 @@ IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
# wicd service finishes before completing DHCP
while [[ "$IP" == "" ]]; do
sleep 3
- 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 )
done
cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 1 --value=$IP