From 0bf931cf12c66abfd58e70dd1cf3659e828a8725 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 8 Oct 2014 18:43:02 +0200 Subject: added scripts and configs for supervisord --- scripts/include.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 scripts/include.sh (limited to 'scripts/include.sh') diff --git a/scripts/include.sh b/scripts/include.sh new file mode 100644 index 0000000..3a809e9 --- /dev/null +++ b/scripts/include.sh @@ -0,0 +1,46 @@ +get_id_title_and_port() { + case "$1" in + 00) + TITLE='ESC: Ministry of Hacking' + PORT_BASE=5010 + ID='esc' + ;; + 01) + TITLE='Gemeinschaftsprojekt Attemsgarten' + PORT_BASE=5020 + ID='gag' + ;; + 02) + TITLE='rathaus der herzen' + PORT_BASE=5030 + ID='rdh' + ;; + 03) + TITLE='realraum' + PORT_BASE=5040 + ID='r3' + ;; + 04) + TITLE='<rotor> Zentrum für zetgenössische Kunst' + PORT_BASE=5050 + ID='rot' + ;; + 05) + TITLE='Spektral' + PORT_BASE=5060 + ID='spe' + ;; + esac +} + +get_num() { + case "$1" in + 'esc') NUM=00 ;; + 'gag') NUM=01 ;; + 'rdh') NUM=02 ;; + 'r3') NUM=03 ;; + 'rot') NUM=04 ;; + 'spe') NUM=05 ;; + esac +} + -- cgit v1.2.3