|
|
@ -76,15 +76,12 @@ 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"
|
|
|
|
echo "#!/bin/bash
|
|
|
|
echo "#!/bin/bash
|
|
|
|
JELLYFINDIR="/opt/jellyfin"
|
|
|
|
/opt/jellyfin/jellyfin/jellyfin
|
|
|
|
FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
|
|
|
|
-d /opt/jellyfin/data
|
|
|
|
|
|
|
|
-C /opt/jellyfin/cache
|
|
|
|
$JELLYFINDIR/jellyfin/jellyfin
|
|
|
|
-c /opt/jellyfin/config
|
|
|
|
-d $JELLYFINDIR/data
|
|
|
|
-l /opt/jellyfin/log
|
|
|
|
-C $JELLYFINDIR/cache
|
|
|
|
--ffmpeg /usr/share/jellyfin-ffmpeg/ffmpeg" > $file_path
|
|
|
|
-c $JELLYFINDIR/config
|
|
|
|
|
|
|
|
-l $JELLYFINDIR/log
|
|
|
|
|
|
|
|
--ffmpeg $FFMPEGDIR/ffmpeg" > $file_path
|
|
|
|
|
|
|
|
sudo chmod +x /opt/jellyfin/jellyfin.sh
|
|
|
|
sudo chmod +x /opt/jellyfin/jellyfin.sh
|
|
|
|
|
|
|
|
|
|
|
|
service_path="/etc/systemd/system/jellyfin.service"
|
|
|
|
service_path="/etc/systemd/system/jellyfin.service"
|
|
|
|