mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix starting agent error
This commit is contained in:
parent
0c9500e815
commit
e526875669
@ -26,8 +26,8 @@ echo CLASSPATH to run the agent: "$CLASSPATH"
|
|||||||
export PATH=/sbin:/usr/sbin:"$PATH"
|
export PATH=/sbin:/usr/sbin:"$PATH"
|
||||||
SERVICEARGS=
|
SERVICEARGS=
|
||||||
for x in private public ; do
|
for x in private public ; do
|
||||||
configuration=`grep -q "^$x.network.device" "@AGENTSYSCONFDIR@"/agent.properties`
|
configuration=`grep "^$x.network.device" "@AGENTSYSCONFDIR@"/agent.properties||true`
|
||||||
if [ $? -eq 0 ] ; then
|
if [ -n "$configuration" ] ; then
|
||||||
echo "Using manually-configured network device $CONFIGURATION"
|
echo "Using manually-configured network device $CONFIGURATION"
|
||||||
else
|
else
|
||||||
defaultroute=`ip route | grep ^default | cut -d ' ' -f 5`
|
defaultroute=`ip route | grep ^default | cut -d ' ' -f 5`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user