diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:18:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:18:43 (GMT) |
commit | db5e198de1e368a2202460089f9d00a52947d4f6 (patch) | |
tree | 0d827237ce18a3b1632feea285d10924dc755e5e /abs/core/rsyslog/rsyslog.install | |
parent | 4e8d09d05069baf219f474509a52041c863cca5d (diff) | |
download | linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.zip linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.gz linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.bz2 |
rsyslog: first build, this replaces syslog-ng
/var/log will now have the format of /var/log/$DATE/$log_files
Diffstat (limited to 'abs/core/rsyslog/rsyslog.install')
-rw-r--r-- | abs/core/rsyslog/rsyslog.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/rsyslog/rsyslog.install b/abs/core/rsyslog/rsyslog.install new file mode 100644 index 0000000..2153832 --- /dev/null +++ b/abs/core/rsyslog/rsyslog.install @@ -0,0 +1,16 @@ +# arg 1: the new package version +# arg 2: the old package version + +post_install() { + remove_service.sh syslog-ng + add_service.sh rsyslog + if [ ! -e /var/log/old_syslog ] + then + mkdir -p /var/log/old_sysng + mv /var/log/*log* /var/log/old_sysng + echo "#########################################" + echo "/var/log/old_sysng contains old log files" + echo "it may be removed at your convenience" + echo "#########################################" + fi +} |