From 2a64b1fff87f37eda7ddda3ee62ab1d7f849b0e8 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 16 Apr 2012 15:48:44 -0700 Subject: [PATCH] add post run script to cloud-aws-api --- cloud.spec | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/cloud.spec b/cloud.spec index 9df62380caf..ba91f64c8dd 100644 --- a/cloud.spec +++ b/cloud.spec @@ -138,6 +138,7 @@ Requires: %{name}-setup = %{version} # reqs the agent-scripts package because of xenserver within the management server Requires: %{name}-agent-scripts = %{version} Requires: %{name}-python = %{version} +Requires: %{name}-aws-api = %{version} # for consoleproxy # Requires: %{name}-agent Requires: tomcat6 @@ -309,7 +310,6 @@ Summary: CloudStack CloudBridge Group: System Environment/Libraries Requires: java >= 1.6.0 Requires: tomcat6 -Requires: %{name}-client = %{version} Obsoletes: cloud-bridge < %{version}-%{release} %description aws-api This is the CloudStack CloudBridge @@ -427,18 +427,8 @@ else /sbin/service %{name}-console-proxy condrestart >/dev/null 2>&1 || true fi -%preun -/sbin/service cloud-bridge stop || true -if [ "$1" == "0" ] ; then - /sbin/chkconfig --del cloud-bridge > /dev/null 2>&1 || true - /sbin/service cloud-bridge stop > /dev/null 2>&1 || true -fi - -%post +%post aws-api if [ "$1" == "1" ] ; then - /sbin/chkconfig --add cloud-bridge > /dev/null 2>&1 || true - /sbin/chkconfig --level 345 cloud-bridge on > /dev/null 2>&1 || true - root=/usr/share/cloud/bridge target=/usr/share/cloud/management/