diff --git a/aur/sabnzbd/PKGBUILD b/aur/sabnzbd/PKGBUILD index 84c1e7879..2814018ec 100644 --- a/aur/sabnzbd/PKGBUILD +++ b/aur/sabnzbd/PKGBUILD @@ -1,6 +1,6 @@ pkgname=sabnzbd _pkgname=SABnzbd -pkgver=0.7.3 +pkgver=0.7.4 pkgrel=1 pkgdesc="A web-interface based binary newsgrabber with NZB file support" url="http://www.sabnzbd.org" @@ -14,7 +14,7 @@ backup=("etc/conf.d/${pkgname}" "opt/${pkgname}/${pkgname}.ini") source=("http://downloads.sourceforge.net/sabnzbdplus/${_pkgname}-${pkgver}-src.tar.gz" "${pkgname}" "${pkgname}.confd" "${pkgname}.init" "${pkgname}.desktop" "addnzb.sh" "nzb-2.png" "sab2_64.png" "x-nzb.xml" "${pkgname}.service" "${pkgname}_systemd.confd" "${pkgname}.tmp") -md5sums=('5a528e9ac07cce558c9a775d5d2b91d3' +md5sums=('6c5e24b4dc9fa3004e4724845afe2cae' '48d60a1c626503c7fef1bc5374390513' '7d7ae7cca08e90582587773da3b55de8' '848c7b117388671f243bd0833ff41f89' @@ -24,7 +24,7 @@ md5sums=('5a528e9ac07cce558c9a775d5d2b91d3' 'fdc878dd0f6f25617e627b04409abbbd' '11fb2cd1451e3725b08bfc2bd045be54' '7c2971c330fc131e75ad55979231edff' - 'bb1111d3938d76dcc4109d24f1107fe7' + '321a56d66a971c833677a54bc3f1060d' '1ced962fabe7f5392e32828429b93d04') package() { diff --git a/aur/sabnzbd/sabnzbd.install b/aur/sabnzbd/sabnzbd.install index d3431d32a..e3b4b1135 100644 --- a/aur/sabnzbd/sabnzbd.install +++ b/aur/sabnzbd/sabnzbd.install @@ -21,15 +21,16 @@ pre_upgrade() { PID="$(pgrep -f SABnzbd.py)" if [ -f /run/daemons/sabnzbd ]; then /etc/rc.d/sabnzbd stop # kill the daemon + + if [ -n "${PID}" ];then + kill "${PID}" # kill the daemon finaly + fi fi if [[ -d "/run/sabnzbd/" && "$(ls -A /run/sabnzbd/)" ]]; then systemctl stop sabnzbd.service fi - if [ -n "${PID}" ];then - kill "${PID}" # kill the daemon finaly - fi } ## arg 1: the new package version diff --git a/aur/sabnzbd/sabnzbd_systemd.confd b/aur/sabnzbd/sabnzbd_systemd.confd index 1f7f7e039..eac52928f 100644 --- a/aur/sabnzbd/sabnzbd_systemd.confd +++ b/aur/sabnzbd/sabnzbd_systemd.confd @@ -9,7 +9,7 @@ SABNZBD_PORT=8080 # Set your default user/group(id), startarguments and your configfile SABNZBD_DIR=/opt/sabnzbd -SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d +SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s ${SABNZBD_IP}:${SABNZBD_PORT} -d # Put the session keys from Config > General here SABNZBD_KEY=