mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
change deploy path to /usr/local/cloud for simulator
This commit is contained in:
parent
2002abd7c3
commit
925f415c4b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user