mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update jellyfin_setup.sh
This commit is contained in:
parent
1deafa9c35
commit
b75ebbd0b3
@ -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 \
|
||||
$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]
|
||||
|
Loading…
Reference in New Issue
Block a user