1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-25 02:20:27 +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 ]
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/
systemctl daemon-reload
systemctl enable mympd

2
debian/postinst vendored
View File

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

View File

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