Skip to content

Commit

Permalink
replace ping to github.com to google.com
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Dec 12, 2017
1 parent 3fedf4f commit f7030f5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/ncp-check-version
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

rm -rf /tmp/ncp-check-tmp

Expand Down
2 changes: 1 addition & 1 deletion bin/ncp-update
Original file line number Diff line number Diff line change
Expand Up @@ -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 github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
ping -W 2 -w 1 -q google.com &>/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
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

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

[v0.41.6](https://github.com/nextcloud/nextcloudpi/commit/4f63c34) (2017-12-05) ncp-config: show changelog on updates

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

Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ EOF
# tested with git version v0.11.0-71-g018a304
configure()
{
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; }
ping -W 2 -w 1 -q google.com &>/dev/null || { echo "No internet connectivity"; return 1; }

local DOMAIN_LOWERCASE="${DOMAIN_,,}"

Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ install()

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

## RE-CREATE DATABASE TABLE
echo "Starting mariaDB"
Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/no-ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ configure()
service noip2 stop
[[ $ACTIVE_ != "yes" ]] && { update-rc.d noip2 disable; return 0; }

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

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

0 comments on commit f7030f5

Please sign in to comment.