1 |
diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/smb.conf/shares/10recyclebin smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/smb.conf/shares/10recyclebin |
2 |
--- smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/smb.conf/shares/10recyclebin 2011-12-15 13:46:50.000000000 +0100 |
3 |
+++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/smb.conf/shares/10recyclebin 2011-12-15 15:26:47.000000000 +0100 |
4 |
@@ -1,11 +1,15 @@ |
5 |
{ |
6 |
- $OUT = ""; |
7 |
- return if (($share->prop('RecycleBin') || 'disabled') eq 'disabled'); |
8 |
- |
9 |
- $share_vfs->{recycle}->{versions} = ($share->prop('RecycleBin') || 'disabled') eq 'keep-versions' ? "True" : "False"; |
10 |
- $share_vfs->{recycle}->{repository} = ($share->prop('RecycleBinDir') || "Recycle Bin"); |
11 |
- $share_vfs->{recycle}->{keeptree} = "True"; |
12 |
- $share_vfs->{recycle}->{touch} = "True"; |
13 |
- $share_vfs->{recycle}->{exclude} = "*.tmp,*.temp,*.o,*.obj,~\$*,.~lock.*"; |
14 |
- $share_vfs->{recycle}->{exclude_dir} = "tmp,temp,cache"; |
15 |
+ my $recycle = $share->prop('RecycleBinDir') || "Recycle Bin"; |
16 |
+ if (($share->prop('RecycleBin') || 'disabled') eq 'disabled'){ |
17 |
+ $OUT .= "veto files = /" . $recycle ."/\n"; |
18 |
+ } |
19 |
+ else{ |
20 |
+ $OUT .= ''; |
21 |
+ $share_vfs->{recycle}->{versions} = ($share->prop('RecycleBin') || 'disabled') eq 'keep-versions' ? "True" : "False"; |
22 |
+ $share_vfs->{recycle}->{repository} = $recycle; |
23 |
+ $share_vfs->{recycle}->{keeptree} = "True"; |
24 |
+ $share_vfs->{recycle}->{touch} = "True"; |
25 |
+ $share_vfs->{recycle}->{exclude} = "*.tmp,*.temp,*.o,*.obj,~\$*,.~lock.*"; |
26 |
+ $share_vfs->{recycle}->{exclude_dir} = "tmp,temp,cache"; |
27 |
+ } |
28 |
} |