remove openssl dependency

This commit is contained in:
first 2025-07-23 21:33:43 +00:00
parent a5ab41ef09
commit 2a22b2ebb9

View file

@ -57,7 +57,7 @@ SEARXNG_CONFIG_DIR="/srv/searxng"
echo "▶️ [1/9] Installing dependencies..." echo "▶️ [1/9] Installing dependencies..."
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt-get update apt-get update
BASE_PACKAGES="ca-certificates curl gnupg nginx certbot python3-certbot-nginx fail2ban unattended-upgrades openssl" BASE_PACKAGES="ca-certificates curl gnupg nginx certbot python3-certbot-nginx fail2ban unattended-upgrades"
if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then apt-get install -y $BASE_PACKAGES apache2-utils; else apt-get install -y $BASE_PACKAGES; fi if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then apt-get install -y $BASE_PACKAGES apache2-utils; else apt-get install -y $BASE_PACKAGES; fi
# --- Step 2: Firewall Management --- # --- Step 2: Firewall Management ---
@ -104,7 +104,9 @@ EOF
sudo chown 1000:1000 "$SEARXNG_CONFIG_DIR/user.yml" sudo chown 1000:1000 "$SEARXNG_CONFIG_DIR/user.yml"
# Generate a robust, shell-safe secret key # Generate a robust, shell-safe secret key
SECRET_KEY=$(openssl rand -hex 32) set +o pipefail
SECRET_KEY=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 32)
set -o pipefail
# Build the docker run command safely in an array # Build the docker run command safely in an array
docker_cmd=( docker_cmd=(