From cef38376791792ef6aa026c905b0e1c97e901aaa Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 6 Dec 2010 13:03:05 -0700 Subject: [PATCH] Fix static creation in install_dev --- framework/bin/install_dev | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/framework/bin/install_dev b/framework/bin/install_dev index f2f78af22..fa17a864f 100755 --- a/framework/bin/install_dev +++ b/framework/bin/install_dev @@ -149,7 +149,17 @@ foreach (new DirectoryIterator($horde_git . '/horde') as $it) { } } -chmod($web_dir . '/static', $static_mode); +if (file_exists($web_dir . '/static')) { + echo 'Setting static directory permissions...'; + chmod($web_dir . '/static', $static_mode); +} else { + echo 'Creating static directory...'; + mkdir($web_dir . '/static', $static_mode); +} + +if ($static_group) { + chgrp($web_dir . '/static', $static_group); +} print "\nLINKING framework\n"; mkdir($web_dir . '/libs'); -- 2.11.0