Permalink
Browse files

Workaround for cron envirionment truncation

The Ubuntu cron will truncate long environment variables to 1000 chars.
The VCAP_SERVICES overflows this limit when using the filesystem service
in Stackato-VM-v1.0.4.  This workaround can be reverted for the next
release.
  • Loading branch information...
1 parent 801ea74 commit 51d0c557d586e9edacce4ecd37451385bc627aeb @gisle gisle committed Mar 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 stackato.yml
View
@@ -26,5 +26,6 @@ hooks:
- php sample-install.php
pre-running:
- ln -s $STACKATO_FILESYSTEM sites/default/files
+ - echo $VCAP_SERVICES | tee VCAP_SERVICES.json
cron:
- - "*/15 * * * * drush cron >>$STACKATO_APP_ROOT/logs/cron.log 2>&1"
+ - "*/15 * * * * VCAP_SERVICES=$(cat VCAP_SERVICES.json) drush cron >>$STACKATO_APP_ROOT/logs/cron.log 2>&1"

0 comments on commit 51d0c55

Please sign in to comment.