1 |
filippocarletti |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-2.2.0/root/var/service/smbd/run mezzanine_patched_e-smith-samba-2.2.0/root/var/service/smbd/run |
2 |
|
|
--- e-smith-samba-2.2.0/root/var/service/smbd/run 2010-06-11 09:50:31.000000000 +0200 |
3 |
|
|
+++ mezzanine_patched_e-smith-samba-2.2.0/root/var/service/smbd/run 2010-06-11 09:50:10.000000000 +0200 |
4 |
|
|
@@ -33,16 +33,10 @@ |
5 |
|
|
rm -f /var/cache/samba/printing.tdb |
6 |
|
|
|
7 |
|
|
# Backup critical tdb files |
8 |
|
|
-for tdb in /etc/samba/secrets \ |
9 |
|
|
- /var/lib/samba/account_policy \ |
10 |
|
|
- /var/lib/samba/group_mapping \ |
11 |
|
|
- /var/lib/samba/ntdrivers \ |
12 |
|
|
- /var/lib/samba/ntforms \ |
13 |
|
|
- /var/lib/samba/ntprinters \ |
14 |
|
|
- /var/lib/samba/registry \ |
15 |
|
|
- /var/lib/samba/share_info |
16 |
|
|
+for tdb in /etc/samba/*.tdb \ |
17 |
|
|
+ /var/lib/samba/*.tdb |
18 |
|
|
do |
19 |
|
|
- [ -r "$tdb.tdb" ] && tdbbackup "$tdb.tdb" .bak |
20 |
|
|
+ [ -r "$tdb" ] && tdbbackup "$tdb" .bak |
21 |
|
|
done |
22 |
|
|
|
23 |
|
|
exec 2>&1 |