File tree Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Expand file tree Collapse file tree 6 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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
99rm -rf /tmp/ncp-check-tmp
1010
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 5757# tested with git version v0.11.0-71-g018a304
5858configure ()
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
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ install()
8383
8484configure ()
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"
Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments