0.16.1-2 depskip

This commit is contained in:
2026-04-29 10:28:57 +00:00
parent a6ff18c8c3
commit 1509614d3a
+44 -18
View File
@@ -21,6 +21,7 @@
# --no-makemkv MakeMKV-Installation überspringen # --no-makemkv MakeMKV-Installation überspringen
# --no-handbrake HandBrake-Installation überspringen # --no-handbrake HandBrake-Installation überspringen
# --no-nginx Nginx-Einrichtung überspringen # --no-nginx Nginx-Einrichtung überspringen
# --no-system-deps Abschnitt "Systemabhängigkeiten installieren" überspringen
# --reinstall Vorhandene Installation aktualisieren (Daten bleiben erhalten) # --reinstall Vorhandene Installation aktualisieren (Daten bleiben erhalten)
# -h, --help Diese Hilfe anzeigen # -h, --help Diese Hilfe anzeigen
# ============================================================================= # =============================================================================
@@ -54,6 +55,7 @@ SKIP_MAKEMKV=false
SKIP_HANDBRAKE=false SKIP_HANDBRAKE=false
HANDBRAKE_INSTALL_MODE="" HANDBRAKE_INSTALL_MODE=""
SKIP_NGINX=false SKIP_NGINX=false
SKIP_SYSTEM_DEPS=false
REINSTALL=false REINSTALL=false
GIT_COMMAND_TIMEOUT_SEC=180 GIT_COMMAND_TIMEOUT_SEC=180
@@ -77,6 +79,7 @@ while [[ $# -gt 0 ]]; do
--no-makemkv) SKIP_MAKEMKV=true; shift ;; --no-makemkv) SKIP_MAKEMKV=true; shift ;;
--no-handbrake) SKIP_HANDBRAKE=true; shift ;; --no-handbrake) SKIP_HANDBRAKE=true; shift ;;
--no-nginx) SKIP_NGINX=true; shift ;; --no-nginx) SKIP_NGINX=true; shift ;;
--no-system-deps) SKIP_SYSTEM_DEPS=true; shift ;;
--reinstall) REINSTALL=true; shift ;; --reinstall) REINSTALL=true; shift ;;
-h|--help) -h|--help)
sed -n '/^# Verwendung/,/^# ====/p' "$0" | head -n -1 | sed 's/^# \?//' sed -n '/^# Verwendung/,/^# ====/p' "$0" | head -n -1 | sed 's/^# \?//'
@@ -784,18 +787,25 @@ info "Installationsverzeichnis: $INSTALL_DIR"
info "Systembenutzer: $SERVICE_USER" info "Systembenutzer: $SERVICE_USER"
info "Backend-Port: $BACKEND_PORT" info "Backend-Port: $BACKEND_PORT"
info "Frontend-Host: $FRONTEND_HOST" info "Frontend-Host: $FRONTEND_HOST"
info "System-Dependencies: $([[ "$SKIP_SYSTEM_DEPS" == true ]] && echo "überspringen" || echo "installieren")"
# --- HandBrake-Installmodus auswählen ---------------------------------------- # --- HandBrake-Installmodus auswählen ----------------------------------------
select_handbrake_mode if [[ "$SKIP_SYSTEM_DEPS" == false ]]; then
select_handbrake_mode
fi
# --- Systemabhängigkeiten ----------------------------------------------------- # --- Systemabhängigkeiten -----------------------------------------------------
header "Systemabhängigkeiten installieren" if [[ "$SKIP_SYSTEM_DEPS" == true ]]; then
header "Systemabhängigkeiten installieren"
warn "Übersprungen (--no-system-deps)"
else
header "Systemabhängigkeiten installieren"
info "Paketlisten aktualisieren..." info "Paketlisten aktualisieren..."
apt_update apt_update
info "Installiere Basispakete..." info "Installiere Basispakete..."
apt-get install -y \ apt-get install -y \
curl wget git jq \ curl wget git jq \
ffmpeg \ ffmpeg \
mediainfo \ mediainfo \
@@ -805,38 +815,54 @@ apt-get install -y \
mkvtoolnix \ mkvtoolnix \
coreutils coreutils
ok "Basispakete installiert" ok "Basispakete installiert"
info "Installiere CD-Ripping-Tools..." info "Installiere CD-Ripping-Tools..."
apt-get install -y \ apt-get install -y \
cdparanoia \ cdparanoia \
flac \ flac \
lame \ lame \
opus-tools \ opus-tools \
vorbis-tools vorbis-tools
ok "CD-Ripping-Tools installiert (cdparanoia, flac, lame, opus-tools, vorbis-tools)" ok "CD-Ripping-Tools installiert (cdparanoia, flac, lame, opus-tools, vorbis-tools)"
install_node install_node
if [[ "$SKIP_MAKEMKV" == false ]]; then if [[ "$SKIP_MAKEMKV" == false ]]; then
install_makemkv install_makemkv
else else
warn "MakeMKV-Installation übersprungen (--no-makemkv)" warn "MakeMKV-Installation übersprungen (--no-makemkv)"
fi fi
if [[ "$SKIP_HANDBRAKE" == false ]]; then if [[ "$SKIP_HANDBRAKE" == false ]]; then
install_handbrake install_handbrake
else else
warn "HandBrake-Installation übersprungen (--no-handbrake)" warn "HandBrake-Installation übersprungen (--no-handbrake)"
fi fi
if [[ "$SKIP_NGINX" == false ]]; then if [[ "$SKIP_NGINX" == false ]]; then
if ! command_exists nginx; then if ! command_exists nginx; then
info "Installiere nginx..." info "Installiere nginx..."
apt-get install -y nginx apt-get install -y nginx
fi fi
ok "nginx installiert" ok "nginx installiert"
fi
fi
if [[ "$SKIP_SYSTEM_DEPS" == true ]]; then
missing_required=()
command_exists git || missing_required+=("git")
command_exists jq || missing_required+=("jq")
command_exists node || missing_required+=("node")
command_exists npm || missing_required+=("npm")
if [[ "$SKIP_NGINX" == false ]]; then
command_exists nginx || missing_required+=("nginx")
fi
if [[ ${#missing_required[@]} -gt 0 ]]; then
fatal "--no-system-deps gesetzt, aber folgende Pflicht-Tools fehlen: ${missing_required[*]}. Bitte vorab installieren oder ohne --no-system-deps ausführen."
fi
fi fi
# --- Systembenutzer anlegen --------------------------------------------------- # --- Systembenutzer anlegen ---------------------------------------------------