mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1201 - Fix update to cloud user's home dir on mgmt
server. It was printing a meaningless failure if the cloud
user's home dir didn't need to be updated.
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1362809648 -0700
This commit is contained in:
parent
e35ce6587a
commit
ebafcf826b
|
|
@ -323,7 +323,10 @@ fi
|
|||
|
||||
# change cloud user's home to 4.1+ version if needed. Would do this via 'usermod', but it
|
||||
# requires that cloud user not be in use, so RPM could not be installed while management is running
|
||||
getent passwd cloud | grep -q /var/lib/cloud && sed -i 's/\/var\/lib\/cloud\/management/\/var\/cloudstack\/management/g' /etc/passwd
|
||||
if getent passwd cloud | grep -q /var/lib/cloud; then
|
||||
sed -i 's/\/var\/lib\/cloud\/management/\/var\/cloudstack\/management/g' /etc/passwd
|
||||
fi
|
||||
|
||||
|
||||
%post awsapi
|
||||
if [ -d "%{_datadir}/%{name}-management" ] ; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue