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