New code must not run on systemvm

This commit is contained in:
Ian Southam 2014-11-13 17:16:38 +01:00 committed by wilderrodrigues
parent 4cdaada380
commit 13b7ca1b3f

View File

@ -1289,10 +1289,18 @@ start() {
router)
[ "$NAME" == "" ] && NAME=router
setup_router
if [ -x /opt/cloud/bin/update_config.py ]
then
/opt/cloud/bin/update_config.py cmd_line.json
fi
;;
vpcrouter)
[ "$NAME" == "" ] && NAME=vpcrouter
setup_vpcrouter
if [ -x /opt/cloud/bin/update_config.py ]
then
/opt/cloud/bin/update_config.py cmd_line.json
fi
;;
dhcpsrvr)
[ "$NAME" == "" ] && NAME=dhcpsrvr
@ -1323,10 +1331,6 @@ start() {
# eject the systemvm.iso
eject
fi
if [ -x /opt/cloud/bin/update_config.py ]
then
/opt/cloud/bin/update_config.py cmd_line.json
fi
return 0
}