1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-18 15:57:39 +00:00

Fix: don't use sudo

This commit is contained in:
jcorporation
2018-09-26 00:27:17 +01:00
parent 0a09d06a4b
commit 1cd1cd0228
3 changed files with 7 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ chown -R mympd.mympd /var/lib/mympd
if [ -d /etc/systemd ] if [ -d /etc/systemd ]
then then
[ -d /usr/lib/systemd/system ] || sudo mkdir -p /usr/lib/systemd/system [ -d /usr/lib/systemd/system ] || mkdir -p /usr/lib/systemd/system
cp /usr/share/mympd/mympd.service /usr/lib/systemd/system/ cp /usr/share/mympd/mympd.service /usr/lib/systemd/system/
systemctl daemon-reload systemctl daemon-reload
systemctl enable mympd systemctl enable mympd

2
debian/postinst vendored
View File

@@ -46,7 +46,7 @@ then
echo "Certificates already created" echo "Certificates already created"
else else
echo "Creating certificates" echo "Creating certificates"
sudo /usr/share/mympd/crcert.sh /usr/share/mympd/crcert.sh
fi fi
echo "myMPD installed" echo "myMPD installed"

View File

@@ -48,5 +48,8 @@ cd ..
debian/postinst debian/postinst
echo "Running cppcheck" if [ -x /usr/bin/cppcheck ]
[ -x /usr/bin/cppcheck ] && cppcheck --enable=warning --inconclusive --force --inline-suppr src/*.c src/*.h then
echo "Running cppcheck"
cppcheck --enable=warning --inconclusive --force --inline-suppr src/*.c src/*.h
fi