Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,8 @@ $DOCKER_RUN_OUTPUT"
docker_update_specific 'talk-recording' "Talk Recording"
# Plex
docker_update_specific 'plex' "Plex Media Server"
# Jellyfin
docker_update_specific 'jellyfin' "Jellyfin Media Server"
# Imaginary
docker_update_specific 'imaginary' "Imaginary"
fi
Expand Down
33 changes: 33 additions & 0 deletions not-supported/bitlocker-mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,37 @@ This can take a while. Please be patient!"
fi
fi

# Test if Jellyfin is installed
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^jellyfin$"
then
# Reconfiguring Jellyfin
msg_box "Jellyfin found. We are now adjusting Jellyfin to be able to use the new drive.
This can take a while. Please be patient!"
print_text_in_color "$ICyan" "Downloading the needed tool to get the current Jellyfin config..."
docker pull assaflavie/runlike
echo '#/bin/bash' > /tmp/jellyfin-conf
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p jellyfin >> /tmp/jellyfin-conf
if ! grep -q "$MOUNT_PATH:$MOUNT_PATH:ro" /tmp/jellyfin-conf
then
MOUNT_PATH_SED="${MOUNT_PATH//\//\\/}"
sed -i "0,/--volume/s// -v $MOUNT_PATH_SED:$MOUNT_PATH_SED:ro \\\\\n&/" /tmp/jellyfin-conf
docker stop jellyfin
if ! docker rm jellyfin
then
msg_box "Something failed while removing the old container."
exit 1
fi
if ! bash /tmp/jellyfin-conf
then
msg_box "Starting the new container failed. You can find the config here: '/tmp/jellyfin-conf'"
exit 1
fi
rm /tmp/jellyfin-conf
msg_box "Jellyfin was adjusted!"
else
rm /tmp/jellyfin-conf
msg_box "No need to update Jellyfin, since the drive is already mounted to Jellyfin."
fi
fi

exit
3 changes: 2 additions & 1 deletion not-supported/borgbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ Please don't restart or shutdown your server until then!"

# System backup
EXCLUDED_DIRECTORIES=(home/*/.cache root/.cache home/plex/transcode var/cache lost+found \
run var/run dev tmp "home/plex/config/Library/Application Support/Plex Media Server/Cache")
run var/run dev tmp "home/plex/config/Library/Application Support/Plex Media Server/Cache" \
home/plex/jellyfin/cache)
# mnt, media, sys, prob don't need to be excluded because of the usage of lvm-snapshots and the --one-file-system flag
for directory in "${EXCLUDED_DIRECTORIES[@]}"
do
Expand Down
33 changes: 33 additions & 0 deletions not-supported/btrfs-mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,39 @@ This can take a while. Please be patient!"
msg_box "No need to update Plex, since the drive is already mounted to Plex."
fi
fi

# Test if Jellyfin is installed
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^jellyfin$"
then
# Reconfiguring Jellyfin
msg_box "Jellyfin found. We are now adjusting Jellyfin to be able to use the new drive.
This can take a while. Please be patient!"
print_text_in_color "$ICyan" "Downloading the needed tool to get the current Jellyfin config..."
docker pull assaflavie/runlike
echo '#/bin/bash' > /tmp/jellyfin-conf
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p jellyfin >> /tmp/jellyfin-conf
if ! grep -q "$MOUNT_PATH:$MOUNT_PATH:ro" /tmp/jellyfin-conf
then
MOUNT_PATH_SED="${MOUNT_PATH//\//\\/}"
sed -i "0,/--volume/s// -v $MOUNT_PATH_SED:$MOUNT_PATH_SED:ro \\\\\n&/" /tmp/jellyfin-conf
docker stop jellyfin
if ! docker rm jellyfin
then
msg_box "Something failed while removing the old container."
return
fi
if ! bash /tmp/jellyfin-conf
then
msg_box "Starting the new container failed. You can find the config here: '/tmp/jellyfin-conf'"
return
fi
rm /tmp/jellyfin-conf
msg_box "Jellyfin was adjusted!"
else
rm /tmp/jellyfin-conf
msg_box "No need to update Jellyfin, since the drive is already mounted to Jellyfin."
fi
fi
return
fi

Expand Down
10 changes: 10 additions & 0 deletions not-supported/firewall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ then
done
fi

# Jellyfin
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^jellyfin$"
then
print_text_in_color "$ICyan" "Allow Jellyfin"
for port in 8096/tcp 8920/tcp 1900/udp 7359/udp
do
ufw allow "$port" comment "Jellyfin $port"
done
fi

# Enable firewall
print_text_in_color "$ICyan" "Enable Firewall"
ufw --force enable
Expand Down
Loading