|
|
@ -74,21 +74,18 @@ echo -e "${CHECKMARK} \e[1;92m Installing FFmpeg... \e[0m"
|
|
|
|
apt-get update &>/dev/null
|
|
|
|
apt-get update &>/dev/null
|
|
|
|
apt-get -y install ffmpeg &>/dev/null
|
|
|
|
apt-get -y install ffmpeg &>/dev/null
|
|
|
|
echo -e "${CHECKMARK} \e[1;92m Creating Service file jellyfin.service... \e[0m"
|
|
|
|
echo -e "${CHECKMARK} \e[1;92m Creating Service file jellyfin.service... \e[0m"
|
|
|
|
FILE_PATH="/opt/jellyfin/jellyfin.sh"
|
|
|
|
file_path="/opt/jellyfin/jellyfin.sh"
|
|
|
|
mkdir -p $(dirname $FILE_PATH)
|
|
|
|
echo "#!/bin/bash
|
|
|
|
cat >&FILE_PATH <<'EOF'
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
JELLYFINDIR="/opt/jellyfin"
|
|
|
|
JELLYFINDIR="/opt/jellyfin"
|
|
|
|
FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
|
|
|
|
FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
|
|
|
|
|
|
|
|
|
|
|
|
$JELLYFINDIR/jellyfin/jellyfin \
|
|
|
|
$JELLYFINDIR/jellyfin/jellyfin
|
|
|
|
-d $JELLYFINDIR/data \
|
|
|
|
-d $JELLYFINDIR/data \
|
|
|
|
-C $JELLYFINDIR/cache \
|
|
|
|
-C $JELLYFINDIR/cache \
|
|
|
|
-c $JELLYFINDIR/config \
|
|
|
|
-c $JELLYFINDIR/config \
|
|
|
|
-l $JELLYFINDIR/log \
|
|
|
|
-l $JELLYFINDIR/log \
|
|
|
|
--ffmpeg $FFMPEGDIR/ffmpeg
|
|
|
|
--ffmpeg $FFMPEGDIR/ffmpeg" > $file_path
|
|
|
|
EOF
|
|
|
|
sudo chmod +x /opt/jellyfin/jellyfin.sh
|
|
|
|
sudo chmod +x jellyfin.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
service_path="/etc/systemd/system/jellyfin.service"
|
|
|
|
service_path="/etc/systemd/system/jellyfin.service"
|
|
|
|
echo "[Unit]
|
|
|
|
echo "[Unit]
|
|
|
|