diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-31 07:12:22 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-31 07:12:33 +0300 |
commit | a86efea78ebc241ce51db3cd4d747a744558e51e (patch) | |
tree | aa9568b341940df475a807d4a2fe4ad2cf2d4a87 /etc/nextcloudpi-config.d/nc-nextcloud.sh | |
parent | 2c911be3611d5011c4f8e0d09c21706e259a6a45 (diff) |
various extras: check internet connectivityv0.24.10
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-nextcloud.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-nextcloud.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index 57681b19..84013b5f 100644 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -44,6 +44,7 @@ install() { :; } configure() { + ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; } ## RE-CREATE DATABASE TABLE echo "Starting mariaDB" |