mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
Restart each interface in ubuntu context
Ubuntu does not support restarting network and it needs to restart each of the interfaces. In debian restarting the network works and will continue to use the same method. lsb_release command is not used as it is not installed by default in debian.
This commit is contained in:
parent
61d2431dea
commit
ff68202500
@ -170,7 +170,8 @@ configure_network()
|
||||
|
||||
activate_network()
|
||||
{
|
||||
if [[ `lsb_release -c | awk '{print($2)}'` = precise ]]; then
|
||||
. /etc/os-release
|
||||
if [ ID = "ubuntu" ]; then
|
||||
IFACES=`get_interfaces`
|
||||
|
||||
for i in $IFACES; do
|
||||
|
Loading…
Reference in New Issue
Block a user