summaryrefslogtreecommitdiffstats
path: root/samba_wizard/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'samba_wizard/scripts')
-rwxr-xr-xsamba_wizard/scripts/Smbconf.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/samba_wizard/scripts/Smbconf.pm b/samba_wizard/scripts/Smbconf.pm
index 63496ab7..3657f364 100755
--- a/samba_wizard/scripts/Smbconf.pm
+++ b/samba_wizard/scripts/Smbconf.pm
@@ -155,12 +155,14 @@ sub do_it {
$conf->chg_var("global", "workgroup", $ENV{wiz_workgroup});
$conf->chg_var("global", "server string", $ENV{wiz_banner});
my $ip = $o->get_from_known_dev("IP");
- $conf->file_sharing() if $ENV{wiz_do_file_sharing};
+ if ($ENV{wiz_do_file_sharing}) {
+ $conf->file_sharing();
+ $conf->chg_var("public", "path", $ENV{wiz_dir});
+ }
$conf->printer_sharing() if $ENV{wiz_do_printer_sharing};
$conf->homes() if $ENV{wiz_do_homes};
$conf->chg_var("global", "hosts allow", $ip);
$conf->chg_var("global", "security", "share");
- $conf->chg_var("public", "path", $ENV{wiz_dir});
$conf->write_conf("/etc/samba/smb.conf");
system("/etc/rc.d/init.d/smb restart");
10;