From 660db1e2c476c13b08f063971530c0b0339cab39 Mon Sep 17 00:00:00 2001 From: Yisrael Dov Lebow Date: Mon, 6 Feb 2017 16:48:32 +0200 Subject: [PATCH] Verify that writable directories exist --- recipe/deploy/writable.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipe/deploy/writable.php b/recipe/deploy/writable.php index 175788531..45cc7e712 100644 --- a/recipe/deploy/writable.php +++ b/recipe/deploy/writable.php @@ -18,6 +18,9 @@ return; } + //verify that directories exist + run("mkdir -vp $dirs"); + if ($httpUser === false && $mode !== 'chmod') { // Detect http user in process list. $httpUser = run("ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\\ -f1")->toString();