Changeset 1988
- Timestamp:
- 03/01/07 20:29:57 (2 years ago)
- Files:
-
- psad/branches/psad-2.0.5/install.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
psad/branches/psad-2.0.5/install.pl
r1983 r1988 471 471 if (-e $file) { 472 472 &archive($file) unless $noarchive; 473 } 473 474 ### 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 } 480 481 } 481 482 … … 1327 1328 sub query_preserve_sigs_autodl() { 1328 1329 my $file = shift; 1329 return &query_yes_no("[+] Merge any user modfications " .1330 return &query_yes_no("[+] Preserve any user modfications " . 1330 1331 "in $file ([y]/n)? ", $ACCEPT_YES_DEFAULT); 1331 1332 }
