Add script 'create-rsyslogd-postfix.sh'.
This commit is contained in:
parent
2b541538b6
commit
67afd2d6d3
@ -366,7 +366,7 @@ if $password_needed ; then
|
|||||||
# - wadmin
|
# - wadmin
|
||||||
# -
|
# -
|
||||||
elif [[ "$user_name" = 'wadmin' ]]; then
|
elif [[ "$user_name" = 'wadmin' ]]; then
|
||||||
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$sLWIXKTW\\\$i/STlSS0LijkrnGR/XMbaxJsEbrRdDYgqyCqIr.muLN5towes8yHDCXsyCYDjuaBNKPHXyFpr8lclg5DOm9OF1:\2#" /etc/shadow
|
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$y\\\$j9T\\\$YarN7tuuR4Q4iGCUundvp.\\\$Cj7hN5UAaigmXCZrNQbeIIq40MmYX66.Jiu0QmDYY6.:\2#" /etc/shadow
|
||||||
|
|
||||||
|
|
||||||
# - marcus Opferperspektive
|
# - marcus Opferperspektive
|
||||||
|
23
create-rsyslogd-postfix.sh
Executable file
23
create-rsyslogd-postfix.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ -f "/etc/rsyslog.d/postfix.conf" ]] ; then
|
||||||
|
cat << EOF > /etc/rsyslog.d/postfix.conf
|
||||||
|
# Create an additional socket in postfix's chroot in order not to break
|
||||||
|
# mail logging when rsyslog is restarted. If the directory is missing,
|
||||||
|
# rsyslog will silently skip creating the socket.
|
||||||
|
\$AddUnixListenSocket /var/spool/postfix/dev/log
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logging for the mail system. Split it up so that
|
||||||
|
# it is easy to write scripts to parse these files.
|
||||||
|
#
|
||||||
|
#mail.info -/var/log/mail.info
|
||||||
|
#mail.warn -/var/log/mail.warn
|
||||||
|
#mail.err /var/log/mail.err
|
||||||
|
|
||||||
|
mail.* -/var/log/mail.log
|
||||||
|
& stop
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user