Permalink
Browse files

added echo to script file to prevent $VCAP_SERVICES piping to STDOUT.

  • Loading branch information...
1 parent edd2fbc commit 6bb24852fb9dbf0895853b7c2bdca9c51d6c4bbb bacongobbler committed Jun 21, 2013
Showing with 6 additions and 1 deletion.
  1. +1 −1 stackato.yml
  2. +5 −0 vcap-workaround.py
View
2 stackato.yml
@@ -13,6 +13,6 @@ hooks:
- sh stackato-setup.sh
pre-running:
# Workaround to pass $VCAP_SERVICES to cron
- - echo $VCAP_SERVICES | tee $STACKATO_APP_ROOT/VCAP_SERVICES.json
+ - python vcap-workaround.py
cron:
- "*/15 * * * * VCAP_SERVICES=$(cat $STACKATO_APP_ROOT/VCAP_SERVICES.json) $STACKATO_APP_ROOT/drush/drush cron >>$STACKATO_APP_ROOT/logs/cron.log 2>&1"
View
5 vcap-workaround.py
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+import os
+
+f = open(os.path.join(os.environ['STACKATO_APP_ROOT'], 'VCAP_SERVICES.json'), 'w')
+f.write(os.environ['VCAP_SERVICES'])

0 comments on commit 6bb2485

Please sign in to comment.