diff options
-rwxr-xr-x | add-syslog | 4 | ||||
-rwxr-xr-x | del-syslog | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -23,8 +23,8 @@ Available options: EOF my ($package, $number, $dest) = @ARGV; -# don't do anything in upgrade -exit(0) if $number != 1; +# don't do anything for upgrade +exit(0) if $number == 2; # check arguments my @facilities = qw/auth authpriv cron daemon \ @@ -1,10 +1,15 @@ #!/usr/bin/perl # rpm helper scriptlet to remove a syslog entry (sysklogd and syslog-ng) # $Id$ +use strict; die <<EOF if @ARGV < 2; usage: $0 <pkg> <nb> EOF +my ($package, $number) = @ARGV; + +# don't do anything for upgrade +exit(0) if $number == 1; if (-f '/etc/syslog.conf') { del_syslog_entry($package, '/etc/syslog.conf'); |