Jonathan Hart

Run ifconfig as sudo for OSes that require it

Change-Id: I4fbfa5ba90cde1c6d8a608f1883ae3183abf4c6b
...@@ -31,7 +31,7 @@ ssh $remote " ...@@ -31,7 +31,7 @@ ssh $remote "
31 sudo perl -pi -e \"s/ <name>onos</ <name>${ONOS_CELL:-onos}</g\" \ 31 sudo perl -pi -e \"s/ <name>onos</ <name>${ONOS_CELL:-onos}</g\" \
32 $ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml 32 $ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml
33 33
34 - echo \"onos.ip = \$(ifconfig | grep $ONOS_NIC | cut -d: -f2 | cut -d\\ -f1)\" \ 34 + echo \"onos.ip = \$(sudo ifconfig | grep $ONOS_NIC | cut -d: -f2 | cut -d\\ -f1)\" \
35 >> $ONOS_INSTALL_DIR/$KARAF_DIST/etc/system.properties 35 >> $ONOS_INSTALL_DIR/$KARAF_DIST/etc/system.properties
36 36
37 # Drop copycat related log level for the console 37 # Drop copycat related log level for the console
......