From 590e8d51d79397eecf588a30fe00ad505de3135d Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 25 Sep 2012 19:07:24 +0200 Subject: [PATCH] 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 + +