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:
-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