homelab/scripts/jellyfin/script.sh
2023-04-09 13:09:17 +02:00

27 lines
519 B
Bash

#!/bin/bash
set -euo pipefail
source "$HL_LIB"
_assert_vars HL_DOMAIN;
_ch_001-make_dirs() {
mkdir -p ~/jellyfin /data/jellyfin;
}
_ch_002-copy_compose() {
cp $(_fill docker-compose.yml.templ) ~/jellyfin/docker-compose.yml;
}
_ch_003-update_caddy() {
cp $(_fill Caddyfile.templ) /etc/caddy/conf.d/jellyfin.Caddyfile;
chmod a+r /etc/caddy/conf.d/jellyfin.Caddyfile;
sudo systemctl reload caddy.service;
}
_ch_004-run-service() {
cd ~/jellyfin;
docker-compose up -d;
}
_run_checkpoints