SF.net SVN: postfixadmin:[1855] trunk/setup.php
Brought to you by:
christian_boltz,
gingerdog
From: <gin...@us...> - 2016-08-08 05:00:41
|
Revision: 1855 http://sourceforge.net/p/postfixadmin/code/1855 Author: gingerdog Date: 2016-08-08 05:00:39 +0000 (Mon, 08 Aug 2016) Log Message: ----------- change error message depending on whether templates_c is present or not Modified Paths: -------------- trunk/setup.php Modified: trunk/setup.php =================================================================== --- trunk/setup.php 2016-05-23 04:49:00 UTC (rev 1854) +++ trunk/setup.php 2016-08-08 05:00:39 UTC (rev 1855) @@ -152,10 +152,17 @@ if (!is_writeable($incpath.'/templates_c')) { - print "<li><b>Error: Smarty template compile directory templates_c is not writable.</b><br />\n"; - print "<b>Please make it writable.</b><br />\n"; - print "<b>If you are using SELinux or AppArmor, you might need to adjust their setup to allow write access.</b><br />\n"; - $error =+ 1; + if(!is_dir($incpath . '/templates_c')) { + print "<li><b>Error: Smarty template compile directory templates_c not found.</b><br />\n"; + echo "<b>Please <code>mkdir -p $incpath/templates_c</code> and make it writeable by the web server</b>\n"; + $error =+ 1; + } + else { + print "<li><b>Error: Smarty template compile directory templates_c is not writable.</b><br />\n"; + print "<b>Please make it writable.</b><br />\n"; + print "<b>If you are using SELinux or AppArmor, you might need to adjust their setup to allow write access.</b><br />\n"; + $error =+ 1; + } } else { print "<li>Smarty template compile directory is writable - OK<br />\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |