mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
init: Explicitly set the HOME variable to the homedir of the user cloud
We have to explicitly set the HOME variable to the homedir from the user "cloud" This is because various scripts run by the management server read the HOME variable and fail when this init script is run manually. For example the injectkeys.sh script reads the HOME variable
This commit is contained in:
parent
b18c03a006
commit
ef89793c4e
@ -38,6 +38,11 @@ CATALINA_HOME=@MSENVIRON@
|
||||
DEFAULT=@MSCONF@/tomcat6.conf
|
||||
JVM_TMP=/tmp/$NAME-temp
|
||||
|
||||
# We have to explicitly set the HOME variable to the homedir from the user "cloud"
|
||||
# This is because various scripts run by the management server read the HOME variable
|
||||
# and fail when this init script is run manually.
|
||||
HOME=$(echo ~cloud)
|
||||
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "You need root privileges to run this script"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user