27 lines
519 B
Bash
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
|