gcc484ntopperl-5.22
|
Last change
on this file since 8b8e03e was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 9 years ago
|
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
|
File size:
822 bytes
|
| Rev | Line | |
|---|
| [c5c522c] | 1 | config() { |
|---|
| 2 | NEW="$1" |
|---|
| 3 | OLD="$(dirname $NEW)/$(basename $NEW .new)" |
|---|
| 4 | # If there's no config file by that name, mv it over: |
|---|
| 5 | if [ ! -r $OLD ]; then |
|---|
| 6 | mv $NEW $OLD |
|---|
| 7 | elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy |
|---|
| 8 | rm $NEW |
|---|
| 9 | fi |
|---|
| 10 | # Otherwise, we leave the .new copy for the admin to consider... |
|---|
| 11 | } |
|---|
| 12 | config etc/logrotate.d/syslog.new |
|---|
| 13 | config etc/syslog.conf.new |
|---|
| 14 | rm etc/rc.d/rc.syslog |
|---|
| 15 | config var/log/cron.new |
|---|
| 16 | config var/log/debug.new |
|---|
| 17 | config var/log/maillog.new |
|---|
| 18 | config var/log/messages.new |
|---|
| 19 | config var/log/secure.new |
|---|
| 20 | config var/log/spooler.new |
|---|
| 21 | config var/log/syslog.new |
|---|
| 22 | |
|---|
| 23 | # Remove any leftover empty files: |
|---|
| 24 | rm -f var/log/cron.new |
|---|
| 25 | rm -f var/log/debug.new |
|---|
| 26 | rm -f var/log/maillog.new |
|---|
| 27 | rm -f var/log/messages.new |
|---|
| 28 | rm -f var/log/secure.new |
|---|
| 29 | rm -f var/log/spooler.new |
|---|
| 30 | rm -f var/log/syslog.new |
|---|
| 31 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.