]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add flavors to start script
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Thu, 20 Dec 2018 12:06:01 +0000 (13:06 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Thu, 20 Dec 2018 12:06:01 +0000 (13:06 +0100)
roles/contexts/fretlink/files/workdir/start

index b587efe8f8c009bf88b63db28106eb7218f27bc3..840943a223cb8e0b63a54948e4c8ca4e89976d2b 100755 (executable)
@@ -41,13 +41,14 @@ function start_psql() {
   psql -h $POSTGRESQL_ADDON_HOST -p $POSTGRESQL_ADDON_PORT -U $POSTGRESQL_ADDON_USER -d $POSTGRESQL_ADDON_DB
 }
 
-case "$APP" in
+case "$APP${FLAVOR:+-}$FLAVOR" in
   "psql") start_psql;;
   "app") start_app;;
   "admin-root") start_stack server;;
   "carrier-directory") start_stack server;;
   "freight") start_stack freight-server;;
   "notifier") start_stack notifier-exe;;
+  "notifier-amqp") start_stack notifier-exe-amqp;;
   "pricer") start_stack pricer;;
   "toolbox") start_stack toolbox-api;;
 esac