1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-03-13 15:08:18 +00:00

Fix: set exit status to 0 for rpmbuild

This commit is contained in:
jcorporation 2018-09-05 20:36:23 +02:00
parent 8490303b97
commit 313f690003
2 changed files with 8 additions and 4 deletions

View File

@ -3,7 +3,7 @@
if [ -d /etc/mympd/ssl ]
then
echo "SSL directory exists, to recreate certificates: \"rm -r /etc/mympd/ssl\""
exit 1
exit 0
fi
mkdir -p /etc/mympd/ssl/ca/certs

View File

@ -38,13 +38,17 @@ cd release
make install DESTDIR=%{buildroot}
%post
/usr/share/mympd/crcert.sh
getent group mympd > /dev/null
[ "$?" == "2" ] && groupadd mympd
getent passwd mympd > /dev/null
[ "$?" == "2" ] && useradd mympd -g mympd
if [ -d /usr/lib/systemd/ ]
then
[ -d /usr/lib/systemd/system ] || sudo mkdir /usr/lib/systemd/system
cp /usr/share/mympd/mympd.service /usr/lib/systemd/system/
fi
chown -R mympd /var/lib/mympd
/usr/share/mympd/crcert.sh
%files
%defattr(-,root,root,-)
@ -56,5 +60,5 @@ chown -R mympd /var/lib/mympd
/var/lib/mympd
%changelog
* Tue Sep 04 2018 Juergen Mang <mail@jcgames.de> - master
* Wed Sep 05 2018 Juergen Mang <mail@jcgames.de> - master
- Version from master