Changeset 1988

Show
Ignore:
Timestamp:
03/01/07 20:29:57 (2 years ago)
Author:
mbr
Message:

updated to preserve auto_dl and signature files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • psad/branches/psad-2.0.5/install.pl

    r1983 r1988  
    471471        if (-e $file) { 
    472472            &archive($file) unless $noarchive; 
     473        } 
    473474### FIXME, need a real config preservation routine for these files. 
    474 #            unless (&query_preserve_sigs_autodl($file)) { 
    475         } 
    476         &logr("[+] Copying $filename -> $file\n"); 
    477         copy $filename, $file or die "[*] Could not ", 
    478             "copy $filename -> $file: $!"
    479         &perms_ownership($file, 0600); 
     475       unless (&query_preserve_sigs_autodl($file)) { 
     476            &logr("[+] Copying $filename -> $file\n"); 
     477            copy $filename, $file or die "[*] Could not ", 
     478                "copy $filename -> $file: $!"; 
     479            &perms_ownership($file, 0600)
     480        } 
    480481    } 
    481482 
     
    13271328sub query_preserve_sigs_autodl() { 
    13281329    my $file = shift; 
    1329     return &query_yes_no("[+] Merge any user modfications " . 
     1330    return &query_yes_no("[+] Preserve any user modfications " . 
    13301331            "in $file ([y]/n)?  ", $ACCEPT_YES_DEFAULT); 
    13311332}