/[smeserver]/rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-tdbbackup.patch
ViewVC logotype

Contents of /rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-tdbbackup.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 12 16:12:59 2007 UTC (17 years ago) by slords
Branch: MAIN
CVS Tags: e-smith-samba-1_14_0-30_el4_sme, e-smith-samba-1_14_0-35_el4_sme, e-smith-samba-1_14_0-36_el4_sme, e-smith-samba-1_14_0-33_el4_sme, e-smith-samba-1_14_0-34_el4_sme, e-smith-samba-1_14_0-31_el4_sme, e-smith-samba-1_14_0-32_el4_sme, e-smith-samba-1_14_0-29_el4_sme
Import on branch sme7 of package e-smith-samba-1.14.0-29.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-1.14.0/root/var/service/smbd/run mezzanine_patched_e-smith-samba-1.14.0/root/var/service/smbd/run
2 --- e-smith-samba-1.14.0/root/var/service/smbd/run 2007-01-04 13:15:31.000000000 -0700
3 +++ mezzanine_patched_e-smith-samba-1.14.0/root/var/service/smbd/run 2007-01-04 13:14:52.000000000 -0700
4 @@ -32,5 +32,18 @@
5 # Delete the printing.tdb file if it exists to force it to rebuild.
6 rm -f /var/cache/samba/printing.tdb
7
8 +# Backup critical tdb files
9 +for tdb in /etc/samba/secrets \
10 + /var/cache/samba/account_policy \
11 + /var/cache/samba/group_mapping \
12 + /var/cache/samba/ntdrivers \
13 + /var/cache/samba/ntforms \
14 + /var/cache/samba/ntprinters \
15 + /var/cache/samba/registry \
16 + /var/cache/samba/share_info
17 +do
18 + [ -r "$tdb.tdb" ] && tdbbackup "$tdb.tdb" .bak
19 +done
20 +
21 exec 2>&1
22 exec $smbd -F

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed