From: Michael M Slusarz Date: Mon, 6 Dec 2010 20:03:05 +0000 (-0700) Subject: Fix static creation in install_dev X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cef38376791792ef6aa026c905b0e1c97e901aaa;p=horde.git Fix static creation in install_dev --- 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');