Update alpine-komodo-install.sh

This commit is contained in:
maq
2025-11-13 01:39:04 -08:00
parent c2c5d616cd
commit 73890d579e

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# =============================================================
# Komodo Installer Proxmox LXC (Alpine 3.22, Privileged)
# Fixed & Production-Ready | Author: MickLesk (enhanced)
# Komodo Installer - Proxmox LXC (Alpine 3.22, Privileged)
# Fixed & Production-Ready | ASCII-SAFE VERSION
# License: MIT
# Source: https://komo.do
# =============================================================
@@ -30,8 +30,8 @@ catch_errors
# ------------------ Enforce Privileged LXC -------------------
if [[ "$var_unprivileged" -eq 1 ]]; then
msg_error "Komodo requires a PRIVILEGED LXC with nesting=1"
echo -e "${YW}Please recreate the container with:${CL}"
echo -e "${TAB}--unprivileged 0 --features nesting=1,keyctl=1"
echo "Please recreate the container with:"
echo " --unprivileged 0 --features nesting=1,keyctl=1"
exit 1
fi
@@ -52,10 +52,10 @@ while ! docker info >/dev/null 2>&1; do sleep 1; done
msg_ok "Docker daemon ready"
# ------------------ Choose Database --------------------------
echo -e "${TAB3}Choose the database for Komodo installation:"
echo -e "${TAB3}1) MongoDB (recommended)"
echo -e "${TAB3}2) FerretDB"
read -rp "${TAB3}Enter your choice (default: 1): " DB_CHOICE
echo "Choose the database for Komodo installation:"
echo " 1) MongoDB (recommended)"
echo " 2) FerretDB"
read -rp "Enter your choice (default: 1): " DB_CHOICE
DB_CHOICE=${DB_CHOICE:-1}
case $DB_CHOICE in
@@ -95,7 +95,7 @@ msg_info "Starting Komodo stack"
if docker compose -p komodo -f "$COMPOSE_FILE" --env-file compose.env up -d; then
msg_ok "Komodo stack started"
else
msg_error "Failed to start Komodo showing logs"
msg_error "Failed to start Komodo - showing logs"
docker compose -p komodo -f "$COMPOSE_FILE" logs
exit 1
fi
@@ -122,11 +122,11 @@ msg_ok "Cleanup complete"
# ------------------ Success Message --------------------------
IP=$(hostname -I | awk '{print $1}')
echo
echo -e "${CREATING}${GN}${APP} has been successfully installed!${CL}"
echo -e "${INFO}${YW} Access the web interface:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
echo -e "${INFO}${YW} Admin password is stored in:${CL}"
echo -e "${TAB}/opt/komodo/compose.env"
echo "=== KOMODO INSTALLATION COMPLETE ==="
echo "Access the web interface at:"
echo " http://$IP:3000"
echo "Admin password is stored in:"
echo " /opt/komodo/compose.env"
echo
echo -e "${INFO}Run updates with: ${CL}update_komodo.sh"
echo "To update later, run: update_komodo.sh"
echo