From b371c43c3ea02d449d22f6cbc36ea48a06ae1e41 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 16 Dec 2015 09:41:03 -0200 Subject: Export PATH in drupal script --- files/drupal | 3 +++ 1 file changed, 3 insertions(+) (limited to 'files') diff --git a/files/drupal b/files/drupal index 948ed43..b2587fb 100755 --- a/files/drupal +++ b/files/drupal @@ -7,6 +7,9 @@ BASE=${BASE:="/var/www/data"} SITES=${SITES:="$BASE/drupal"} SERIES="5 6 7" +# Ensure we have a proper path, useful when called through cron +export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' + # Read a parameter from user function drupal_user_input { local input -- cgit v1.2.3