install_postfixadmin.sh: orioginal script now has the right charset (utf8).
This commit is contained in:
parent
da6c7fca0e
commit
aa092ea841
@ -1842,23 +1842,25 @@ fi
|
|||||||
|
|
||||||
# - Encoding does not work as exspected.
|
# - Encoding does not work as exspected.
|
||||||
# -
|
# -
|
||||||
|
# - Update: Encoding seems to works now
|
||||||
|
# -
|
||||||
# - NOTE:
|
# - NOTE:
|
||||||
# - this IS NOT a fix, but a workaround
|
# - this IS NOT a fix, but a workaround
|
||||||
# -
|
# -
|
||||||
echononl "\tWorkaround, because encoding does not work as exspected."
|
#echononl "\tWorkaround, because encoding does not work as exspected."
|
||||||
# - Vacation script changed. Since Version 3.2 we need another perl regexp.
|
## - Vacation script changed. Since Version 3.2 we need another perl regexp.
|
||||||
# - The old one was:
|
## - The old one was:
|
||||||
# - perl -i -n -p -e "s/(\s*\'ctype\'\s* =>\s*)\'text\/plain.*$/\1\'text\/plain; charset=iso-8859-1\',/" \
|
## - perl -i -n -p -e "s/(\s*\'ctype\'\s* =>\s*)\'text\/plain.*$/\1\'text\/plain; charset=iso-8859-1\',/" \
|
||||||
# -
|
## -
|
||||||
perl -i -n -p -e "s/(\s*\'Content-Type\'\s* =>\s*)\"text\/plain.*$/\1\"text\/plain; charset=iso-8859-1\",/" \
|
##perl -i -n -p -e "s/(\s*\'Content-Type\'\s* =>\s*)\"text\/plain.*$/\1\"text\/plain; charset=iso-8859-1\",/" \
|
||||||
/var/spool/vacation/vacation.pl > "$log_file" 2>&1
|
## /var/spool/vacation/vacation.pl > "$log_file" 2>&1
|
||||||
if [[ $? -eq 0 ]];then
|
#if [[ $? -eq 0 ]];then
|
||||||
echo_ok
|
# echo_ok
|
||||||
info "This IS NOT a fix, but a workaround."
|
# info "This IS NOT a fix, but a workaround."
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
echononl "\tSet Permission on vacation script"
|
echononl "\tSet Permission on vacation script"
|
||||||
_failed=false
|
_failed=false
|
||||||
|
Loading…
Reference in New Issue
Block a user