mirror of
https://github.com/SuperBFG7/ympd
synced 2025-04-27 13:13:18 +00:00
Fix: renaming of /var/lib/mympd/smartpls/*.dist files
This commit is contained in:
parent
044eaa2ad4
commit
2eeddc9786
@ -52,12 +52,15 @@ post_upgrade() {
|
|||||||
# move smartpls into place unless already existing
|
# move smartpls into place unless already existing
|
||||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||||
do
|
do
|
||||||
PLS=$(basename $PLDIST .dist)
|
if [ -f "$PLDIST" ]
|
||||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
|
||||||
then
|
then
|
||||||
rm $PLDIST
|
PLS=$(basename $PLDIST .dist)
|
||||||
else
|
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
then
|
||||||
|
rm $PLDIST
|
||||||
|
else
|
||||||
|
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -66,12 +66,15 @@ fi
|
|||||||
# move smartpls into place unless already existing
|
# move smartpls into place unless already existing
|
||||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||||
do
|
do
|
||||||
PLS=$(basename $PLDIST .dist)
|
if [ -f "$PLDIST" ]
|
||||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
|
||||||
then
|
then
|
||||||
rm $PLDIST
|
PLS=$(basename $PLDIST .dist)
|
||||||
else
|
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
then
|
||||||
|
rm $PLDIST
|
||||||
|
else
|
||||||
|
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
14
debian/postinst
vendored
14
debian/postinst
vendored
@ -36,15 +36,19 @@ fi
|
|||||||
# move smartpls into place unless already existing
|
# move smartpls into place unless already existing
|
||||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||||
do
|
do
|
||||||
PLS=$(basename $PLDIST .dist)
|
if [ -f "$PLDIST" ]
|
||||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
|
||||||
then
|
then
|
||||||
rm $PLDIST
|
PLS=$(basename $PLDIST .dist)
|
||||||
else
|
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
then
|
||||||
|
rm $PLDIST
|
||||||
|
else
|
||||||
|
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# move config into place unless already existing
|
# move config into place unless already existing
|
||||||
if [ ! -f /etc/mympd/mympd.conf ]
|
if [ ! -f /etc/mympd/mympd.conf ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user