summaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2020-09-03 10:16:17 +0200
committerdennis <dennis@mrslave>2020-09-03 10:16:17 +0200
commit1d2c4ac58d1419fc777da00d9a5cc9a7e90206b1 (patch)
treedee7657705ae0aa8210e94f8204a5c64217c0eec /mkosi.postinst
parentexchanging apt with apt-get for better script-compatability (diff)
downloadmkosi-sabnzbd-1d2c4ac58d1419fc777da00d9a5cc9a7e90206b1.tar.gz
upgrade to focal and sabnzbd 3
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst11
1 files changed, 8 insertions, 3 deletions
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