summaryrefslogtreecommitdiffstats
path: root/samba_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-07-13 04:12:41 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-07-13 04:12:41 +0000
commit139f38670767b065b347003954068853db0faddc (patch)
tree691a31da8bb980adddbe31635ee5e67466b4554f /samba_wizard
parentdb5b875f688280c0155e6d9a32d2ed3bb9ca0fe2 (diff)
downloaddrakwizard-139f38670767b065b347003954068853db0faddc.tar
drakwizard-139f38670767b065b347003954068853db0faddc.tar.gz
drakwizard-139f38670767b065b347003954068853db0faddc.tar.bz2
drakwizard-139f38670767b065b347003954068853db0faddc.tar.xz
drakwizard-139f38670767b065b347003954068853db0faddc.zip
fix logon script
Diffstat (limited to 'samba_wizard')
-rwxr-xr-xsamba_wizard/Sambashare.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/samba_wizard/Sambashare.pm b/samba_wizard/Sambashare.pm
index 7a88441b..1ab71b5e 100755
--- a/samba_wizard/Sambashare.pm
+++ b/samba_wizard/Sambashare.pm
@@ -265,7 +265,7 @@ $o->{pages} = {
}
if (! -d $o->{var}{wiz_addshare_path}) {
mkdir_p($o->{var}{wiz_addshare_path}) or $::in->ask_warn(N("Error"), N("Can\'t create the directory, please enter a correct path."));
- system("chmod 755 $o->{var}{wiz_addshare_path}");
+
return 1;
} else { return 0 }
},
@@ -533,6 +533,7 @@ sub do_it_remove_share {
my $w = $in->wait_message(N("Samba share"), N("Configuring your Samba server..."));
my $share = $o->{var}{wiz_selected_share};
delete $samba->{$share};
+ if ($share =~ /Profiles/) { delete $samba->{global}{'logon home'} }
write_conf_restart_smb();
undef $w;
@@ -606,6 +607,7 @@ sub do_it_add_profiles {
my $in = 'interactive'->vnew('su', 'Samba');
my $w = $in->wait_message(N("Samba share"), N("Configuring your Samba server..."));
$samba->{Profiles}{path} = $o->{var}{wiz_profiles_path};
+ $samba->{global}{'logon home'} = "\\\\%L\\Profiles\\%u";
$samba->{Profiles}{browseable} = $o->{var}{wiz_profiles_browseable};
$samba->{Profiles}{'guest ok'} = $o->{var}{wiz_profiles_guest_ok};
$samba->{Profiles}{writable} = $o->{var}{wiz_profiles_writable};