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 4
4
5
5
[ $( id -u) -ne 0 ] && exit 1
6
6
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; }
8
8
9
9
rm -rf /tmp/ncp-check-tmp
10
10
Original file line number Diff line number Diff line change 4
4
5
5
{
6
6
[ " $( 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; }
8
8
echo -e " Downloading updates"
9
9
rm -rf /tmp/ncp-update-tmp
10
10
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 1
1
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
3
5
4
6
[ v0.41.5] ( https://github.com/nextcloud/nextcloudpi/commit/0fe56d8 ) (2017-12-05) nc-database: accept BTRFS filesystems
5
7
Original file line number Diff line number Diff line change 57
57
# tested with git version v0.11.0-71-g018a304
58
58
configure ()
59
59
{
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; }
61
61
62
62
local DOMAIN_LOWERCASE=" ${DOMAIN_,,} "
63
63
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ install()
83
83
84
84
configure ()
85
85
{
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; }
87
87
88
88
# # RE-CREATE DATABASE TABLE
89
89
echo " Starting mariaDB"
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ configure()
88
88
service noip2 stop
89
89
[[ $ACTIVE_ != " yes" ]] && { update-rc.d noip2 disable; return 0; }
90
90
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" ; }
92
92
93
93
local IF=$( ip -br l | awk ' { if ( $2 == "UP" ) print $1 }' | head -1 )
94
94
[[ " $IF " != " " ]] && IF=" -I $IF "
You can’t perform that action at this time.
0 commit comments