Skip to content

Commit

Permalink
Hotfix ST preset loading
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Oct 12, 2024
1 parent 4e1b6de commit 9482af6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ STEREOTOOL_BASE_URL="https://download.thimeo.com"
# General settings
SUPPORTED_OS=("bookworm" "jammy")
TIMEZONE="Europe/Amsterdam"
DIRECTORIES=("/etc/liquidsoap" "/var/audio" "/usr/share/liquidsoap/.liquidsoap.presets/")
DIRECTORIES=("/etc/liquidsoap" "/var/audio")
# Remove liquidsoap.presets after bug is resolved.
# It's a hotfix for https://github.com/savonet/liquidsoap/issues/4161 (saving presets fails)

Expand Down Expand Up @@ -153,7 +153,6 @@ if [ "$USE_ST" == "y" ]; then
chmod +x /opt/stereotool/st_standalone

# Backup, generate and patch StereoTool settings file
backup_file "/etc/liquidsoap/st.ini"
/opt/stereotool/st_standalone -X /etc/liquidsoap/st.ini
sed -i 's/^\(Whitelist=\).*$/\1\/0/' /etc/liquidsoap/st.ini
sed -i 's/^\(Enable web interface=\).*$/\11/' /etc/liquidsoap/st.ini
Expand All @@ -162,6 +161,10 @@ else
sed -i '/# StereoTool implementation/,/output.dummy(radioproc)/d' /etc/liquidsoap/radio.liq
fi

# Hotfix preset saving
chmod 777 /usr/share/liquidsoap/
# It's a hotfix for https://github.com/savonet/liquidsoap/issues/4161 (saving presets fails)

# Set up Liquidsoap as a system service
echo -e "${BLUE}►► Setting up Liquidsoap service...${NC}"
rm -f /etc/systemd/system/liquidsoap.service
Expand Down

0 comments on commit 9482af6

Please sign in to comment.