/[smeserver]/rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-remove-relocate_samba_file.patch
ViewVC logotype

Annotation of /rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-remove-relocate_samba_file.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Jul 9 17:43:14 2010 UTC (14 years, 4 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-backup-2_2_0-62_el5_sme, e-smith-backup-2_2_0-72_el5_sme, e-smith-backup-2_2_0-60_el5_sme, e-smith-backup-2_2_0-66_el5_sme, e-smith-backup-2_2_0-65_el5_sme, e-smith-backup-2_2_0-80_el5_sme, e-smith-backup-2_2_0-44_el5_sme, e-smith-backup-2_2_0-83_el5_sme, e-smith-backup-2_2_0-52_el5_sme, e-smith-backup-2_2_0-82_el5_sme, e-smith-backup-2_2_0-88_el5_sme, e-smith-backup-2_2_0-74_el5_sme, e-smith-backup-2_2_0-55_el5_sme, e-smith-backup-2_2_0-84_el5_sme, e-smith-backup-2_2_0-63_el5_sme, e-smith-backup-2_2_0-87_el5_sme, e-smith-backup-2_2_0-64_el5_sme, e-smith-backup-2_2_0-43_el5_sme, e-smith-backup-2_2_0-48_el5_sme, e-smith-backup-2_2_0-81_el5_sme, e-smith-backup-2_2_0-68_el5_sme, e-smith-backup-2_2_0-86_el5_sme, e-smith-backup-2_2_0-50_el5_sme, e-smith-backup-2_2_0-51_el5_sme, e-smith-backup-2_2_0-71_el5_sme, e-smith-backup-2_2_0-61_el5_sme, e-smith-backup-2_2_0-57_el5_sme, e-smith-backup-2_2_0-78_el5_sme, e-smith-backup-2_2_0-73_el5_sme, e-smith-backup-2_2_0-79_el5_sme, e-smith-backup-2_2_0-75_el5_sme, e-smith-backup-2_2_0-76_el5_sme, e-smith-backup-2_2_0-56_el5_sme, e-smith-backup-2_2_0-58_el5_sme, e-smith-backup-2_2_0-45_el5_sme, e-smith-backup-2_2_0-59_el5_sme, e-smith-backup-2_2_0-53_el5_sme, e-smith-backup-2_2_0-67_el5_sme, e-smith-backup-2_2_0-42_el5_sme, e-smith-backup-2_2_0-70_el5_sme, e-smith-backup-2_2_0-77_el5_sme, e-smith-backup-2_2_0-54_el5_sme, e-smith-backup-2_2_0-85_el5_sme, e-smith-backup-2_2_0-69_el5_sme, e-smith-backup-2_2_0-49_el5_sme, e-smith-backup-2_2_0-47_el5_sme, e-smith-backup-2_2_0-46_el5_sme, HEAD
remove relocate_samba_file and all references to /etc/smbpasswd [SME: 6073]

1 wellsi 1.1 diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/web/functions/backup e-smith-backup-2.2.0/root/etc/e-smith/web/functions/backup
2     --- e-smith-backup-2.2.0.old/root/etc/e-smith/web/functions/backup 2010-07-08 09:00:54.000000000 +0100
3     +++ e-smith-backup-2.2.0/root/etc/e-smith/web/functions/backup 2010-07-09 08:34:17.000000000 +0100
4     @@ -2075,8 +2075,7 @@
5     my $complete = 0;
6     while (<RD>)
7     {
8     - $complete++ if /etc\/smbpasswd$/;
9     - $complete++ if /etc\/samba\/smbpasswd$/; # >6.0 base
10     + $complete++ if /etc\/samba\/smbpasswd$/;
11     print "<li>$_</li>\n";
12     }
13    
14     @@ -2424,7 +2423,6 @@
15     my $complete = 0;
16     while (<RD>)
17     {
18     - $complete++ if /etc\/smbpasswd$/;
19     $complete++ if /etc\/samba\/smbpasswd$/;
20     print "<li>$_</li>\n";
21     }
22     diff -ruN e-smith-backup-2.2.0.old/root/usr/lib/perl5/site_perl/esmith/Backup.pm e-smith-backup-2.2.0/root/usr/lib/perl5/site_perl/esmith/Backup.pm
23     --- e-smith-backup-2.2.0.old/root/usr/lib/perl5/site_perl/esmith/Backup.pm 2010-07-08 09:00:54.000000000 +0100
24     +++ e-smith-backup-2.2.0/root/usr/lib/perl5/site_perl/esmith/Backup.pm 2010-07-09 08:27:40.000000000 +0100
25     @@ -316,43 +316,6 @@
26     return 1;
27     }
28    
29     -=head2 relocate_samba_file
30     -
31     -Relocate a samba auxiliary file from /etc to /etc/samba
32     -
33     -=cut
34     -
35     -sub relocate_samba_file
36     -{
37     - my ($self, $filename) = @_;
38     -
39     - return if ( -l "/etc/$filename" and -f "/etc/samba/$filename" );
40     -
41     - unlink "/etc/samba/$filename" if ( -l "/etc/samba/$filename");
42     -
43     - if ( -f "/etc/$filename" and -f "/etc/samba/$filename" )
44     - {
45     - warn "/etc/$filename and /etc/samba/$filename exist - preserving /etc/samba/$filename.$$\n";
46     -
47     - move "/etc/samba/$filename", "/etc/samba/$filename.$$" or
48     - warn "Couldn't move /etc/samba/$filename to /etc/samba/$filename.$$\n";
49     - }
50     -
51     - if ( -f "/etc/$filename" )
52     - {
53     - unlink "/etc/samba/$filename" if ( -l "/etc/samba/$filename" );
54     -
55     - move "/etc/$filename", "/etc/samba/$filename" or
56     - warn "Couldn't move /etc/$filename to /etc/samba/$filename\n";
57     -
58     - }
59     -
60     - unless ( -l "/etc/$filename" )
61     - {
62     - symlink "/etc/samba/$filename", "/etc/$filename";
63     - }
64     -}
65     -
66     =head2 save_system_files
67    
68     Save away system files which get cobbered by a restore
69     @@ -420,10 +383,6 @@
70     warn "Skipping group file merge\n";
71     }
72    
73     - $self->relocate_samba_file("smbpasswd");
74     -
75     - $self->relocate_samba_file("secrets.tdb");
76     -
77     my $now = time();
78    
79     foreach my $file ( $self->restore_list )

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