Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ (MickLesk) a8956d5fc4 fix(komodo): ensure openssl is available on Alpine before generating secrets 2026-04-30 14:11:21 +02:00
CanbiZ (MickLesk) c85d9d5830 fix(alpine-docker): install openssl as core dependency 2026-04-30 14:10:11 +02:00
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apk add tzdata $STD apk add tzdata openssl
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Docker" msg_info "Installing Docker"
+20
View File
@@ -151,6 +151,23 @@ function check_proxmox_host() {
# ============================================================================== # ==============================================================================
# CHECK / INSTALL DOCKER # CHECK / INSTALL DOCKER
# ============================================================================== # ==============================================================================
function ensure_openssl() {
if command -v openssl &>/dev/null; then
return
fi
msg_info "Installing openssl"
if [[ -f /etc/alpine-release ]]; then
$STD apk add openssl
elif command -v apt-get &>/dev/null; then
$STD apt-get update
$STD apt-get install -y openssl
else
msg_error "openssl is required but could not be installed automatically."
exit 10
fi
msg_ok "Installed openssl"
}
function check_or_install_docker() { function check_or_install_docker() {
if command -v docker &>/dev/null; then if command -v docker &>/dev/null; then
msg_ok "Docker $(docker --version | cut -d' ' -f3 | tr -d ',') is available" msg_ok "Docker $(docker --version | cut -d' ' -f3 | tr -d ',') is available"
@@ -160,6 +177,7 @@ function check_or_install_docker() {
msg_error "Docker Compose plugin is not available. Please install it." msg_error "Docker Compose plugin is not available. Please install it."
exit 10 exit 10
fi fi
ensure_openssl
return return
fi fi
@@ -183,6 +201,8 @@ function check_or_install_docker() {
$STD sh <(curl -fsSL https://get.docker.com) $STD sh <(curl -fsSL https://get.docker.com)
fi fi
msg_ok "Installed Docker" msg_ok "Installed Docker"
ensure_openssl
} }
# ============================================================================== # ==============================================================================