Update jellyfin_setup.sh

This commit is contained in:
tteckster 2022-02-08 20:22:43 -05:00 committed by GitHub
parent 30a6b63078
commit 915e80543c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -69,8 +69,13 @@ sudo wget https://repo.jellyfin.org/releases/server/linux/stable/combined/jellyf
sudo tar xvzf jellyfin_10.7.7_amd64.tar.gz sudo tar xvzf jellyfin_10.7.7_amd64.tar.gz
sudo ln -s jellyfin_10.7.7 jellyfin sudo ln -s jellyfin_10.7.7 jellyfin
sudo mkdir data cache config log sudo mkdir data cache config log
mkfile jellyfin.sh
cat >jellyfin.sh <<'EOF' echo -e "${CHECKMARK} \e[1;92m Installing FFmpeg... \e[0m"
sudo wget https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/4.4.1-1/jellyfin-ffmpeg_4.4.1-1-bullseye_amd64.deb &>/dev/null
sudo dpkg --install jellyfin-ffmpeg_4.4.1-1-bullseye_amd64.deb
echo -e "${CHECKMARK} \e[1;92m Creating Service file jellyfin.service... \e[0m"
FILE_PATH="/opt/jellyfin/jellyfin.sh"
cat >&FILE_PATH <<'EOF'
#!/bin/bash #!/bin/bash
JELLYFINDIR="/opt/jellyfin" JELLYFINDIR="/opt/jellyfin"
FFMPEGDIR="/usr/share/jellyfin-ffmpeg" FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
@ -84,10 +89,6 @@ $JELLYFINDIR/jellyfin/jellyfin \
EOF EOF
sudo chmod +x jellyfin.sh sudo chmod +x jellyfin.sh
echo -e "${CHECKMARK} \e[1;92m Installing FFmpeg... \e[0m"
sudo wget https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/4.4.1-1/jellyfin-ffmpeg_4.4.1-1-bullseye_amd64.deb &>/dev/null
sudo dpkg --install jellyfin-ffmpeg_4.4.1-1-bullseye_amd64.deb &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Creating Service file jellyfin.service... \e[0m"
service_path="/etc/systemd/system/jellyfin.service" service_path="/etc/systemd/system/jellyfin.service"
echo "[Unit] echo "[Unit]
Description=Jellyfin Description=Jellyfin