First check in
This commit is contained in:
29
SNAP/usher
Executable file
29
SNAP/usher
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
CONF="auth,authpriv.* -/var/log/auth.log
|
||||
*.*;auth,authpriv.none -/var/log/sys.log
|
||||
daemon.* -/var/log/daemon.log
|
||||
kern.* -/var/log/kern.log
|
||||
mail.* -/var/log/mail.log
|
||||
user.* -/var/log/user.log
|
||||
#*.emerg *
|
||||
*.emerg -/var/log/kern.log"
|
||||
|
||||
case $1 in
|
||||
preinst)
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/syslog.conf ]; then
|
||||
echo "${CONF}" > ${TARGET}/etc/syslog.conf
|
||||
fi
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
;;
|
||||
postrm)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user