1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-27 03:47:40 +00:00

Fix: packaging improvrements - unified postinst scripts, added postrm hooks

Fix: don't override mympd.conf
This commit is contained in:
jcorporation
2018-09-17 18:31:45 +01:00
parent 7cffc5ecc6
commit 1b9dde8059
9 changed files with 53 additions and 58 deletions

View File

@@ -49,15 +49,10 @@ post_upgrade() {
/usr/share/mympd/crcert.sh
fi
# disable ssl by default on mympd.conf.dist (chrome hates localhost.localdomain)
echo "INFO: Disabling SSL by default in dist config"
sed '/^ssl = true/c ssl = false' -i "/etc/mympd/mympd.conf.dist"
# move config into place unless already existing
if [ ! -f /etc/mympd/mympd.conf ]
then
mv /etc/mympd/mympd.conf.dist /etc/mympd/mympd.conf
echo -e "\e[93mWARNING\e[0m: \e[1mSSL Disabled by default! You must enable SSL in /etc/mympd/mympd.conf if you wish to use SSL\e[0m"
else
echo -e "\e[93mWARNING\e[0m: \e[1mmympd.conf \e[0minstalled as \e[1mmympd.conf.dist\e[0m"
fi