diff options
Diffstat (limited to 'docker/run-nc.sh')
-rwxr-xr-x | docker/run-nc.sh | 2 |
1 files changed, 1 insertions, 1 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 |