From 1d2c4ac58d1419fc777da00d9a5cc9a7e90206b1 Mon Sep 17 00:00:00 2001 From: dennis Date: Thu, 3 Sep 2020 10:16:17 +0200 Subject: upgrade to focal and sabnzbd 3 --- mkosi.postinst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mkosi.postinst') diff --git a/mkosi.postinst b/mkosi.postinst index 83443b7..6f25764 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -21,9 +21,14 @@ useradd --system --gid warez --uid 997 warez add-apt-repository --yes ppa:jcfp/nobetas add-apt-repository --yes ppa:jcfp/sab-addons -apt-get install --yes sabnzbdplus python-sabyenc par2-tbb python-pip +apt-get install --yes sabnzbdplus python3-sabyenc par2-tbb python3-pip -pip install --no-cache-dir apprise chardet pynzb requests sabyenc +pip3 install --no-cache-dir apprise chardet pynzb requests sabyenc -apt-get purge --auto-remove --yes python-pip +apt-get purge --auto-remove --yes python3-pip apt-get clean + +sed -i 's/USER=/USER=warez/' /etc/default/sabnzbdplus +sed -i 's/CONFIG=/CONFIG=\/config/' /etc/default/sabnzbdplus +sed -i 's/HOST=/HOST=0.0.0.0/' /etc/default/sabnzbdplus +sed -i 's/PORT=/PORT=8080/' /etc/default/sabnzbdplus -- cgit v1.2.3