Browse Source

Update sabnzbd-install.sh

code refactoring
tteckster 1 year ago
parent
commit
19f08297e6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      install/sabnzbd-install.sh

+ 2 - 1
install/sabnzbd-install.sh

@@ -19,7 +19,8 @@ $STD apt-get install -y sudo
 $STD apt-get install -y mc
 $STD apt-get install -y par2
 $STD apt-get install -y p7zip-full
-wget -q http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/unrar_7.0.3-1_amd64.deb
+RELEASE=$(curl -s http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/ | grep -oP 'href="\K[^"]*unrar_7\.\d+\.\d+-\d+_amd64\.deb')
+wget -q http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/$RELEASE
 $STD dpkg -i unrar*.deb
 rm unrar*.deb
 msg_ok "Installed Dependencies"