summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/rsyslog.install
blob: 21538321edf76e1a9c44b396b572cd50c3366bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}