diff options
author | Antoine Ginies <aginies@mandriva.com> | 2005-06-06 03:07:55 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2005-06-06 03:07:55 +0000 |
commit | 13f65d07967b6deb212f6fc36799077311b09f2f (patch) | |
tree | 4aea297773239f19507e151ba54a53312af8f7f2 /samba_wizard | |
parent | 233b05f2e960b10e9509b4e83191b3a502735fce (diff) | |
download | drakwizard-13f65d07967b6deb212f6fc36799077311b09f2f.tar drakwizard-13f65d07967b6deb212f6fc36799077311b09f2f.tar.gz drakwizard-13f65d07967b6deb212f6fc36799077311b09f2f.tar.bz2 drakwizard-13f65d07967b6deb212f6fc36799077311b09f2f.tar.xz drakwizard-13f65d07967b6deb212f6fc36799077311b09f2f.zip |
use a default smb.conf if /etc/samba/smb.conf doesnt exist
Diffstat (limited to 'samba_wizard')
-rwxr-xr-x | samba_wizard/Samba.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samba_wizard/Samba.pm b/samba_wizard/Samba.pm index 0066fe4a..80d98bd5 100755 --- a/samba_wizard/Samba.pm +++ b/samba_wizard/Samba.pm @@ -71,6 +71,7 @@ my $o = { }; # we ask glueconf to give us the structure representing /etc/samba/smb.conf +if (!-f "/etc/samba/smb.conf") { cp_af("/usr/share/samba/smb.conf.clean", "/etc/samba/smb.conf"); } my $samba = new Libconf::Glueconf::Samba::Smb_conf({ filename => '/etc/samba/smb.conf', show_commented_info => 1 }); #debug @@ -85,7 +86,7 @@ my %type = ( ); my @yesorno = qw(yes no); push @yesorno, ""; -my @loglevel = qw(0 1 2 3 4 5 6 7 8 9 10); +my @loglevel = qw(0 1 2 3 4 5 6 7 8 9); $o->{pages} = { welcome => { |