Summary: Update cloud user's home dir during RPM install for 4.1+ Signed-off-by: Marcus Sorensen <[email protected]> 1362185206 -0700
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/6317f0bd Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/6317f0bd Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/6317f0bd Branch: refs/heads/vim51_win8 Commit: 6317f0bd33605c4943dcf472415e9d5c7a443d93 Parents: d67d435 Author: Marcus Sorensen <[email protected]> Authored: Fri Mar 1 17:46:46 2013 -0700 Committer: Marcus Sorensen <[email protected]> Committed: Fri Mar 1 17:46:46 2013 -0700 ---------------------------------------------------------------------- packaging/centos63/cloud.spec | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/6317f0bd/packaging/centos63/cloud.spec ---------------------------------------------------------------------- diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec index 24ec245..74055ac 100644 --- a/packaging/centos63/cloud.spec +++ b/packaging/centos63/cloud.spec @@ -318,6 +318,10 @@ if [ ! -f %{_datadir}/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util echo %{_datadir}/cloudstack-common/scripts/vm/hypervisor/xenserver/ 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 + %post awsapi if [ -d "%{_datadir}/%{name}-management" ] ; then ln -s %{_datadir}/%{name}-bridge/webapps %{_datadir}/%{name}-management/webapps7080
