mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Allow manual editing of config even when there is a config error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user