Pārlūkot izejas kodu

Update jellyfin_setup.sh

tteckster 3 gadi atpakaļ
vecāks
revīzija
22a32a43a1
1 mainītis faili ar 11 papildinājumiem un 7 dzēšanām
  1. 11 7
      setup/jellyfin_setup.sh

+ 11 - 7
setup/jellyfin_setup.sh

@@ -50,11 +50,12 @@ echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m"
 apt-get update &>/dev/null
 apt-get -qqy install \
     curl \
-    sudo \
-    gnupg2 \
-    apt-transport-https \
-    ca-certificates \
-    git &>/dev/null
+    sudo &>/dev/null
+    #gnupg \
+    #apt-transport-https \
+    #ca-certificates \
+    #git &>/dev/null
+#apt install apt-transport-https gnupg lsb-release &>/dev/null
  
 echo -e "${CHECKMARK} \e[1;92m Setting Up Hardware Acceleration... \e[0m"  
 apt-get -y install \
@@ -67,8 +68,11 @@ apt-get -y install \
 /bin/chmod 660 /dev/dri/*
 
 echo -e "${CHECKMARK} \e[1;92m Setting Up Jellyfin Repository... \e[0m"
-wget -q -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add - &>/dev/null
-echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list &>/dev/null
+sudo apt install extrepo
+sudo extrepo enable jellyfin
+#wget -q -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add - &>/dev/null
+#echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/debian $( lsb_release -c -s ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list &>/dev/null
+#echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list &>/dev/null
 #echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/debian bullseye main" | tee /etc/apt/sources.list.d/jellyfin.list &>/dev/null
 echo -e "${CHECKMARK} \e[1;92m Installing Jellyfin... \e[0m"
 apt-get update &>/dev/null