sabnzbd: do not use symlink to SABnzbd.py

SABnzbd has location-dependent code. A simple symlink in /usr/bin will
cause it to look for its templates in /usr/bin, too.
This commit is contained in:
Dominik Honnef 2014-07-02 13:34:33 +02:00 committed by Juan RP
parent d1b4871074
commit aae9f6f52a
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/share/sabnzbd/
./SABnzbd.py $*

View File

@ -40,6 +40,5 @@ do_install() {
vmkdir usr/share/sabnzbd
mv * ${DESTDIR}/usr/share/sabnzbd/
mkdir -p ${DESTDIR}/usr/bin/
ln -fs /usr/share/sabnzbd/SABnzbd.py ${DESTDIR}/usr/bin/sabnzbd
vinstall ${FILESDIR}/sabnzbd 0755 usr/bin/
}