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:
parent
0a09d06a4b
commit
1cd1cd0228
@ -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
2
debian/postinst
vendored
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user