Remove reload via cli and just restart the service
This commit is contained in:
parent
39606e833f
commit
a16b6f84e3
|
@ -74,8 +74,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if nmcli_installed
|
if nmcli_installed
|
||||||
commands[:middle] << "((nmcli c help 2>&1 | grep reload) && nmcli c reload) || " \
|
commands[:middle] << "(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || " \
|
||||||
"(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || " \
|
|
||||||
"((systemctl | grep NetworkManager.service) && systemctl restart NetworkManager)"
|
"((systemctl | grep NetworkManager.service) && systemctl restart NetworkManager)"
|
||||||
end
|
end
|
||||||
commands = commands[:start] + commands[:middle] + commands[:end]
|
commands = commands[:start] + commands[:middle] + commands[:end]
|
||||||
|
|
Loading…
Reference in New Issue