mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
improve network_ok
This commit is contained in:
parent
c59609b09d
commit
9a77f1611c
6
lib.sh
6
lib.sh
@ -425,7 +425,11 @@ check_command sudo -u www-data php "$NCPATH"/occ "$@";
|
||||
|
||||
network_ok() {
|
||||
echo "Testing if network is OK..."
|
||||
service network-manager restart
|
||||
if ! service network-manager restart > /dev/null
|
||||
then
|
||||
service networking restart > /dev/null
|
||||
fi
|
||||
sleep 2
|
||||
if wget -q -T 20 -t 2 http://github.com -O /dev/null & spinner_loading
|
||||
then
|
||||
return 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user