install_postfix_base.sh: add missing variable 'log_file'.

This commit is contained in:
Christoph 2023-01-31 23:21:47 +01:00
parent d35c32ef46
commit 7e79d01ca3

View File

@ -12,9 +12,19 @@ _TLS_KEY_FILE="${_TLS_CERT_DIR}/mailserver.key"
_TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt _TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
log_file=$(mktemp)
# ------------- # -------------
# --- Some functions # --- Some functions
# ------------- # -------------
clean_up() {
# Perform program exit housekeeping
rm -f $log_file
exit $1
}
echononl(){ echononl(){
echo X\\c > /tmp/shprompt$$ echo X\\c > /tmp/shprompt$$
if [ `wc -c /tmp/shprompt$$ | awk '{print $1}'` -eq 1 ]; then if [ `wc -c /tmp/shprompt$$ | awk '{print $1}'` -eq 1 ]; then
@ -31,7 +41,7 @@ fatal(){
echo "" echo ""
echo -e "\t\033[31m\033[1mInstalllation will be interrupted\033[m\033[m" echo -e "\t\033[31m\033[1mInstalllation will be interrupted\033[m\033[m"
echo "" echo ""
exit 1 clean_up 1
} }
error(){ error(){
@ -1173,4 +1183,4 @@ fi
echo "" echo ""
exit clean_up 0