From 8a519f874ea6e4fcfac32e33aea247c322adaf1d Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Wed, 11 Sep 2002 13:19:47 +0000 Subject: doesn't load conf outside of a function to prevent no samba file --- samba_wizard/scripts/Smbconf.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samba_wizard/scripts') 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}; } -- cgit v1.2.1