summaryrefslogtreecommitdiffstats
path: root/postfix_wizard/scripts/Postfixconf.pm
diff options
context:
space:
mode:
Diffstat (limited to 'postfix_wizard/scripts/Postfixconf.pm')
-rw-r--r--postfix_wizard/scripts/Postfixconf.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/postfix_wizard/scripts/Postfixconf.pm b/postfix_wizard/scripts/Postfixconf.pm
index cfa25fe5..176795ac 100644
--- a/postfix_wizard/scripts/Postfixconf.pm
+++ b/postfix_wizard/scripts/Postfixconf.pm
@@ -2,13 +2,13 @@
package Postfixconf;
require "__WIZ_HOME__/common/scripts/Vareqval.pm";
-require "__WIZ_HOME__/common/scripts/DrakconnectConf.pm";
+require "__WIZ_HOME__/common/scripts/IFCFG.pm";
use MDK::Common;
use strict;
-my $o = DrakconnectConf->new();
-my $wiz_domain_name = $o->get("DomainName");
-my $wiz_host_name = $o->get("SystemName");
+my $o = IFCFG->new();
+my $wiz_domain_name = $o->network_get("DOMAINNAME");
+my $wiz_host_name = $o->network_get("HOSTNAME");
sub get_mail_masquerade {
my $login = `logname`;
@@ -28,7 +28,6 @@ sub get_mail_relay {
}
sub do_it {
- my $wiz_host_name = $o->get("SystemName");
my @conf = qw(/etc/postfix/aliases
/etc/postfix/canonical
/etc/postfix/main.cf