summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/rsyslog.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/rsyslog/rsyslog.install')
-rw-r--r--abs/core/rsyslog/rsyslog.install16
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
+}