You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2012/10/10 00:35:49 UTC

[2/2] git commit: add cloud awsapi postinit

add cloud awsapi postinit


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/18226b06
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/18226b06
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/18226b06

Branch: refs/heads/4.0
Commit: 18226b067d131b0c927a5c98da1db8b276f1bb60
Parents: b9e936c
Author: Edison Su <su...@gmail.com>
Authored: Tue Oct 9 15:24:00 2012 -0700
Committer: Edison Su <su...@gmail.com>
Committed: Tue Oct 9 15:24:00 2012 -0700

----------------------------------------------------------------------
 debian/cloud-awsapi.postinst |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/18226b06/debian/cloud-awsapi.postinst
----------------------------------------------------------------------
diff --git a/debian/cloud-awsapi.postinst b/debian/cloud-awsapi.postinst
new file mode 100644
index 0000000..c431078
--- /dev/null
+++ b/debian/cloud-awsapi.postinst
@@ -0,0 +1,32 @@
+#!/bin/sh -e
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+case "$1" in
+    configure)
+    	mkdir -p /usr/share/cloud/management/webapps7080
+    	if [ ! -h /usr/share/cloud/management/webapps7080/awsapi ]; then
+        	ln -sf /usr/share/cloud/bridge/webapps7080/awsapi /usr/share/cloud/management/webapps7080/awsapi
+    	fi
+    	confs="cloud-bridge.properties ec2-service.properties"
+    	for c in $confs
+    	do
+        	cp -f /usr/share/cloud/bridge/conf/$c /usr/share/cloud/management/conf
+    	done
+esac
+
+#DEBHELPER#