CLOUDSTACK-221: Add user/group before installing aws-api

Since cloud-client requires aws-api package, and is installed
before aws-api, the patch sets up user/group first.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-10-08 15:37:56 +05:30
parent e63a3b6fa2
commit 029b9dde86
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ if [ "$1" == "0" ] ; then
/sbin/service %{name}-management stop > /dev/null 2>&1 || true
fi
%pre client
%pre aws-api
id %{name} > /dev/null 2>&1 || /usr/sbin/useradd -M -c "CloudStack unprivileged user" \
-r -s /bin/sh -d %{_sharedstatedir}/%{name}/management %{name}|| true