From b75ebbd0b302662a228ad61a5e2159daab4377cd Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 8 Feb 2022 21:09:17 -0500 Subject: [PATCH] Update jellyfin_setup.sh --- setup/jellyfin_setup.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/setup/jellyfin_setup.sh b/setup/jellyfin_setup.sh index 196498cd..fe2fb325 100644 --- a/setup/jellyfin_setup.sh +++ b/setup/jellyfin_setup.sh @@ -74,21 +74,18 @@ echo -e "${CHECKMARK} \e[1;92m Installing FFmpeg... \e[0m" apt-get update &>/dev/null apt-get -y install ffmpeg &>/dev/null echo -e "${CHECKMARK} \e[1;92m Creating Service file jellyfin.service... \e[0m" -FILE_PATH="/opt/jellyfin/jellyfin.sh" -mkdir -p $(dirname $FILE_PATH) -cat >&FILE_PATH <<'EOF' -#!/bin/bash +file_path="/opt/jellyfin/jellyfin.sh" +echo "#!/bin/bash JELLYFINDIR="/opt/jellyfin" FFMPEGDIR="/usr/share/jellyfin-ffmpeg" -$JELLYFINDIR/jellyfin/jellyfin \ - -d $JELLYFINDIR/data \ +$JELLYFINDIR/jellyfin/jellyfin + -d $JELLYFINDIR/data \ -C $JELLYFINDIR/cache \ -c $JELLYFINDIR/config \ -l $JELLYFINDIR/log \ - --ffmpeg $FFMPEGDIR/ffmpeg -EOF -sudo chmod +x jellyfin.sh + --ffmpeg $FFMPEGDIR/ffmpeg" > $file_path +sudo chmod +x /opt/jellyfin/jellyfin.sh service_path="/etc/systemd/system/jellyfin.service" echo "[Unit]