diff options
author | dennis <dennis@mrslave> | 2020-09-03 10:16:17 +0200 |
---|---|---|
committer | dennis <dennis@mrslave> | 2020-09-03 10:16:17 +0200 |
commit | 1d2c4ac58d1419fc777da00d9a5cc9a7e90206b1 (patch) | |
tree | dee7657705ae0aa8210e94f8204a5c64217c0eec | |
parent | exchanging apt with apt-get for better script-compatability (diff) | |
download | mkosi-sabnzbd-1d2c4ac58d1419fc777da00d9a5cc9a7e90206b1.tar.gz |
upgrade to focal and sabnzbd 3
-rw-r--r-- | mkosi.default | 4 | ||||
-rwxr-xr-x | mkosi.postinst | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/mkosi.default b/mkosi.default index 8a121fb..51cbcbe 100644 --- a/mkosi.default +++ b/mkosi.default @@ -1,6 +1,6 @@ [Distribution] Distribution=ubuntu -Release=bionic +Release=focal Repositories=main,universe,multiverse Mirror=http://no.archive.ubuntu.com/ubuntu @@ -16,4 +16,4 @@ Packages= p7zip-full unrar unzip - python-cryptography + python3-cryptography 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 |