Skip to content

Commit f7030f5

Browse files
committed
replace ping to github.com to google.com
1 parent 3fedf4f commit f7030f5

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

bin/ncp-check-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[ $(id -u) -ne 0 ] && exit 1
66

7-
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
7+
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
88

99
rm -rf /tmp/ncp-check-tmp
1010

bin/ncp-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{
66
[ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }
7-
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
7+
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
88
echo -e "Downloading updates"
99
rm -rf /tmp/ncp-update-tmp
1010
git clone --depth 20 -q https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-update-tmp || exit 1

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v0.41.6](https://github.com/nextcloud/nextcloudpi/commit/c7c709a) (2017-12-05) ncp-config: show changelog on updates
2+
[v0.41.7](https://github.com/nextcloud/nextcloudpi/commit/6bb9c0c) (2017-12-12) replace ping to github.com to google.com
3+
4+
[v0.41.6](https://github.com/nextcloud/nextcloudpi/commit/4f63c34) (2017-12-05) ncp-config: show changelog on updates
35

46
[v0.41.5](https://github.com/nextcloud/nextcloudpi/commit/0fe56d8) (2017-12-05) nc-database: accept BTRFS filesystems
57

etc/nextcloudpi-config.d/letsencrypt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ EOF
5757
# tested with git version v0.11.0-71-g018a304
5858
configure()
5959
{
60-
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; }
60+
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; return 1; }
6161

6262
local DOMAIN_LOWERCASE="${DOMAIN_,,}"
6363

etc/nextcloudpi-config.d/nc-nextcloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ install()
8383

8484
configure()
8585
{
86-
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; }
86+
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; return 1; }
8787

8888
## RE-CREATE DATABASE TABLE
8989
echo "Starting mariaDB"

etc/nextcloudpi-config.d/no-ip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ configure()
8888
service noip2 stop
8989
[[ $ACTIVE_ != "yes" ]] && { update-rc.d noip2 disable; return 0; }
9090

91-
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; echo "noip DDNS disabled"; }
91+
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; return 1; echo "noip DDNS disabled"; }
9292

9393
local IF=$( ip -br l | awk '{ if ( $2 == "UP" ) print $1 }' | head -1 )
9494
[[ "$IF" != "" ]] && IF="-I $IF"

0 commit comments

Comments
 (0)