From af763987edc44bb74b74367f960d2ced31e9c884 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Mon, 3 Dec 2012 18:03:23 -0800 Subject: [PATCH] proper permissions and use env to run build hook --- bin/compile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compile b/bin/compile index 89378d3fc..1fa9877bd 100755 --- a/bin/compile +++ b/bin/compile @@ -93,9 +93,9 @@ chmod +x boot.sh # run a post build script from the app if [ -d /app/www/.hooks ]; then if [ -f /app/www/.hooks/build.sh ]; then - chmod +x /app/www/.hooks/build.sh + chmod 0755 /app/www/.hooks/build.sh # run once, delete so we don't run it on subsequent dyno starts - /bin/bash /app/www/.hooks/build.sh + /usr/bin/env bash /app/www/.hooks/build.sh rm /app/www/.hooks/build.sh fi fi