Allow manual editing of config even when there is a config error

This commit is contained in:
Jamie Cameron
2007-05-20 19:22:43 +00:00
parent a8e6549e03
commit f5cfb0ccdb
2 changed files with 5 additions and 1 deletions

View File

@@ -83,10 +83,13 @@ if (!-x $config{'postfix_super_command'}) {
exit;
}
# Verify that current configuration is valid
# Verify that current configuration is valid. If not, only allow manual editing
if ($config{'index_check'} && ($err = &check_postfix())) {
print &text('check_error'),"<p>\n";
print "<pre>$err</pre>\n";
if ($access{'manual'}) {
print "<a href=edit_manual.cgi>$text{'check_manual'}</a><p>\n";
}
&ui_print_footer("/", $text{'index'});
exit;
}

View File

@@ -13,6 +13,7 @@ index_version=Postfix version $1
opts_err=Failed to save options
check_error=Error while checking current Postfix configuration. Please manually fix Postfix configuration.
check_manual=Manually edit the Postfix configuration file.
address_rewriting_title=Address Rewriting and Masquerading
address_rewriting_ecannot=You are not allowed to edit address rewriting and masquerading