debian/metalog.preinst
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | # If rsyslog was used previously, it wrote in a /var/log/syslog file. |
| 5 | # Metalog is going to use this path for a /var/log/syslog/ directory, |
| 6 | # both can not exist at the same time. |
| 7 | if [ -f /var/log/syslog ]; then |
| 8 | mv /var/log/syslog /var/log/syslog.diverted-by-metalog.$(date +%F) |
| 9 | fi |
| 10 | |
| 11 | # dh_installdeb will replace this with shell code automatically |
| 12 | # generated by other debhelper scripts. |
| 13 | |
| 14 | #DEBHELPER# |
| 15 | |
| 16 | exit 0 |