aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-12-16 09:41:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-12-16 09:41:03 -0200
commitb371c43c3ea02d449d22f6cbc36ea48a06ae1e41 (patch)
treef89ab36b61d0c4c6ceef5f39bd9cc00f30c0c10d /files
parent26ed898b68199649575848c00a07eae49510fbb6 (diff)
downloadpuppet-drupal-b371c43c3ea02d449d22f6cbc36ea48a06ae1e41.tar.gz
puppet-drupal-b371c43c3ea02d449d22f6cbc36ea48a06ae1e41.tar.bz2
Export PATH in drupal script
Diffstat (limited to 'files')
-rwxr-xr-xfiles/drupal3
1 files changed, 3 insertions, 0 deletions
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