mirror of https://github.com/apache/cloudstack.git
Restore the lib directory
This commit is contained in:
parent
029b9dde86
commit
46fd79388c
17
cloud.spec
17
cloud.spec
|
|
@ -288,9 +288,11 @@ Requires: java >= 1.6.0
|
|||
Requires: tomcat6
|
||||
%if 0%{?fedora} > 15
|
||||
Requires: apache-commons-lang
|
||||
Requires: %{name}-utils = %{version}
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5
|
||||
Requires: jakarta-commons-lang
|
||||
Requires: %{name}-utils = %{version}
|
||||
%endif
|
||||
Obsoletes: cloud-bridge < %{version}-%{release}
|
||||
%description aws-api
|
||||
|
|
@ -397,18 +399,18 @@ fi
|
|||
/sbin/chkconfig --level 345 %{name}-management on > /dev/null 2>&1 || true
|
||||
|
||||
root=/usr/share/cloud/bridge
|
||||
target=/usr/share/cloud/management/
|
||||
target=/usr/share/cloud/management
|
||||
|
||||
mkdir -p $target/webapps7080
|
||||
if [ ! -e $target/webapps7080/awsapi ]; then
|
||||
if [ ! -h $target/webapps7080/awsapi ]; then
|
||||
ln -s $root/webapps7080/awsapi $target/webapps7080/awsapi
|
||||
fi
|
||||
|
||||
# jars=`ls $root/lib`
|
||||
# for j in $jars
|
||||
# do
|
||||
# cp -f $root/lib/$j $root/webapps/awsapi/WEB-INF/lib/
|
||||
# done
|
||||
jars=`ls $root/lib`
|
||||
for j in $jars
|
||||
do
|
||||
cp -f $root/lib/$j $root/webapps7080/awsapi/WEB-INF/lib/
|
||||
done
|
||||
|
||||
confs="cloud-bridge.properties ec2-service.properties"
|
||||
for c in $confs
|
||||
|
|
@ -599,6 +601,7 @@ fi
|
|||
%files aws-api
|
||||
%defattr(0644,cloud,cloud,0755)
|
||||
%{_datadir}/cloud/bridge/conf/*
|
||||
%{_datadir}/cloud/bridge/lib/*
|
||||
%{_datadir}/cloud/bridge/webapps7080/*
|
||||
%attr(0644,root,root) %{_datadir}/cloud/setup/bridge/db/*
|
||||
%attr(0755,root,root) %{_bindir}/cloudstack-aws-api-register
|
||||
|
|
|
|||
Loading…
Reference in New Issue