mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-27 01:14:53 +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
|
||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||
do
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
if [ -f "$PLDIST" ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -66,12 +66,15 @@ fi
|
||||
# move smartpls into place unless already existing
|
||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||
do
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
if [ -f "$PLDIST" ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
14
debian/postinst
vendored
14
debian/postinst
vendored
@ -36,15 +36,19 @@ fi
|
||||
# move smartpls into place unless already existing
|
||||
for PLDIST in /var/lib/mympd/smartpls/*.dist
|
||||
do
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
if [ -f "$PLDIST" ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
PLS=$(basename $PLDIST .dist)
|
||||
if [ -f /var/lib/mympd/smartpls/$PLS ]
|
||||
then
|
||||
rm $PLDIST
|
||||
else
|
||||
mv -v $PLDIST /var/lib/mympd/smartpls/$PLS
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# move config into place unless already existing
|
||||
if [ ! -f /etc/mympd/mympd.conf ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user