You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-12 22:51:27 +03:00
change error message depending on whether templates_c is present or not
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1855 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
15
setup.php
15
setup.php
@@ -152,10 +152,17 @@ else
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user