summaryrefslogtreecommitdiffstats
path: root/samba_wizard/scripts/Smbconf.pm
diff options
context:
space:
mode:
Diffstat (limited to 'samba_wizard/scripts/Smbconf.pm')
-rwxr-xr-xsamba_wizard/scripts/Smbconf.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/samba_wizard/scripts/Smbconf.pm b/samba_wizard/scripts/Smbconf.pm
index f2331235..13b36528 100755
--- a/samba_wizard/scripts/Smbconf.pm
+++ b/samba_wizard/scripts/Smbconf.pm
@@ -12,7 +12,6 @@ use strict;
# so one variable cannot be commented and not in the same file.
my $o = DrakconnectConf->new();
-my $old = read_conf("/etc/samba/smb.conf");
sub check {
$> and return 1;
@@ -117,10 +116,12 @@ sub printer_sharing {
}
sub get_workgroup {
+ my $old = read_conf("/etc/samba/smb.conf");
$old->{conf}->{global}{workgroup}{value};
}
sub get_banner {
+ my $old = read_conf("/etc/samba/smb.conf");
$old->{conf}->{global}{"server string"}{value};
}