From 590e8d51d79397eecf588a30fe00ad505de3135d Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 25 Sep 2012 19:07:24 +0200 Subject: [PATCH 1/2] Added postinstall script. Fixes: * feature #1507: Adds information on how to install bundle gems * feature #1506: Information on dependencies is also printed Partialy fixes: * feature #1505: adds plugins and server classes to sunstone --- oneapps/postinstall.sh | 95 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100755 oneapps/postinstall.sh diff --git a/oneapps/postinstall.sh b/oneapps/postinstall.sh new file mode 100755 index 0000000000..4f99a279ca --- /dev/null +++ b/oneapps/postinstall.sh @@ -0,0 +1,95 @@ +#!/bin/bash + +SUNSTONE_PLUGINS=/etc/one/sunstone-plugins.yaml +SUNSTONE_SERVER=/etc/one/sunstone-server.conf + +function print_install_message() { +cat <> $config_file +} + +function add_plugin() { + add_config "$1" "$2" "$SUNSTONE_PLUGINS" +} + +function add_server() { + add_config "$1" "$2" "$SUNSTONE_SERVER" +} + +add_plugin "apptools.appstage-dashboard.js" \ +"- user-plugins/apptools.appstage-dashboard.js: + :user: + :group: + :ALL: true" + +add_plugin "apptools.appstage.js" \ +"- user-plugins/apptools.appstage.js: + :user: + :group: + :ALL: true" + +add_plugin "apptools.appflow-dashboard.js" \ +"- user-plugins/apptools.appflow-dashboard.js: + :group: + :ALL: true + :user:" + +add_plugin "apptools.appflow.templates.js" \ +"- user-plugins/apptools.appflow.templates.js: + :group: + :ALL: true + :user:" + +add_plugin "apptools.appflow.services.js" \ +"- user-plugins/apptools.appflow.services.js: + :group: + :ALL: true + :user:" + +add_plugin "apptools.appmarket-dashboard.js" \ +"- user-plugins/apptools.appmarket-dashboard.js: + :group: + :ALL: true + :user:" + +add_plugin "apptools.appmarket.appliances.js" \ +"- user-plugins/apptools.appmarket.appliances.js: + :group: + :ALL: true + :user:" + +add_server "- appstage" " - appstage" +add_server "- appflow" " - appflow" +add_server "- appmarket" " - appmarket" + +print_install_message + + From 6b261b585e931a2ef6bfafbb6f2da5ece45dd165 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 26 Sep 2012 12:33:37 +0200 Subject: [PATCH 2/2] feature #1505: install opennebula.js and appflow_auth --- oneapps/postinstall.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/oneapps/postinstall.sh b/oneapps/postinstall.sh index 4f99a279ca..97874d56d8 100755 --- a/oneapps/postinstall.sh +++ b/oneapps/postinstall.sh @@ -2,6 +2,10 @@ SUNSTONE_PLUGINS=/etc/one/sunstone-plugins.yaml SUNSTONE_SERVER=/etc/one/sunstone-server.conf +OPENNEBULA_JS=/usr/lib/one/sunstone/public/js/opennebula.js +OPENNEBULA_JS_NEW=/usr/share/one/oneapps/sunstone/public/js/opennebula.js +SUNSTONE_AUTH="$HOME/.one/sunstone_auth" +APPFLOW_AUTH="$HOME/.one/appflow_auth" function print_install_message() { cat <