change deploy path to /usr/local/cloud for simulator

This commit is contained in:
Prasanna Santhanam 2011-02-23 13:27:34 +05:30
parent 2002abd7c3
commit 925f415c4b

View File

@ -44,8 +44,8 @@ printf "NOTE: You must have root privileges to install and run this program.\n"
if [ "$mode" == "setup" ]; then if [ "$mode" == "setup" ]; then
mode="expert" mode="expert"
deploydir="/usr/local/vmops/agent-simulator" deploydir="/usr/local/cloud/agent-simulator"
confdir="/etc/vmops" confdir="/etc/cloud"
/bin/cp -f $deploydir/conf/agent.properties $confdir/agent.properties /bin/cp -f $deploydir/conf/agent.properties $confdir/agent.properties
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then
printf "ERROR: Failed to copy the agent.properties file into the right place." printf "ERROR: Failed to copy the agent.properties file into the right place."
@ -111,11 +111,11 @@ fi
if [ "$deploydir" == "" ]; then if [ "$deploydir" == "" ]; then
if [ "$mode" != "expert" ]; then if [ "$mode" != "expert" ]; then
printf "Directory to deploy to [defaults to /usr/local/vmops/agent-simulator]: " printf "Directory to deploy to [defaults to /usr/local/cloud/agent-simulator]: "
read deploydir read deploydir
fi fi
if [ "$deploydir" == "" ]; then if [ "$deploydir" == "" ]; then
deploydir="/usr/local/vmops/agent-simulator" deploydir="/usr/local/cloud/agent-simulator"
fi fi
fi fi
if ! mkdir -p $deploydir if ! mkdir -p $deploydir