diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-07 11:35:12 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-07 19:07:56 +0300 |
commit | d7f253e25cb9fc3c8555075d37c1f807fddd2a03 (patch) | |
tree | 9c91368568d8ce6ea638b4daadeacbe9b2b6ecbe /bin/ncp-update | |
parent | c8aa2a2ab527c0adbee48094dc1652ff3e786fb7 (diff) |
ping to 4.2.2.2 because google is blocked in chinav0.46.1
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-x | bin/ncp-update | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp-update b/bin/ncp-update index c9e52559..1195ab4e 100755 --- a/bin/ncp-update +++ b/bin/ncp-update @@ -4,7 +4,7 @@ { [ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; } - ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; exit 1; } + ping -W 2 -w 1 -q 4.2.2.2 &>/dev/null || { echo "No internet connectivity"; exit 1; } echo -e "Downloading updates" rm -rf /tmp/ncp-update-tmp git clone --depth 20 -q https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-update-tmp || exit 1 |