feat: set icecast mount default charset to UTF-8

On first install, configure icecast to use utf-8 as default charset for it's mounts.

Fixes #2501
This commit is contained in:
jo 2023-04-07 00:26:38 +02:00 committed by Kyle Robbertze
parent 31e69a60f7
commit 755848482d
4 changed files with 40 additions and 4 deletions

View file

@ -556,6 +556,10 @@ if $LIBRETIME_SETUP_ICECAST; then
if $is_first_install; then
icecast_config_filepath="/etc/icecast2/icecast.xml"
cp_if_different \
"${SCRIPT_DIR}/installer/icecast/icecast.xml" \
"$icecast_config_filepath"
sed --in-place \
-e "s|<admin-password>[^<]*</admin-password>|<admin-password>${LIBRETIME_ICECAST_ADMIN_PASSWORD}</admin-password>|" \
-e "s|<source-password>[^<]*</source-password>|<source-password>${LIBRETIME_ICECAST_SOURCE_PASSWORD}</source-password>|" \