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