From 3589cfd280e92b533cd973e64367310d9c12c4c3 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Sun, 14 Jun 2026 16:34:59 +0000 Subject: [PATCH] fix: both services run as dedicated nextwks user, remove SYS_HOME cruft --- install.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/install.sh b/install.sh index 7dc677b..7196b27 100755 --- a/install.sh +++ b/install.sh @@ -16,26 +16,6 @@ header() { echo -e "\n${BOLD}${CYAN}$1${NC}"; } # SERVICE USER # ============================================================ SVC_USER="nextwks" -SYS_HOME="/home/${SVC_USER}" - -# Create service user if needed -if ! id "$SVC_USER" &>/dev/null; then - info "Creating service user: $SVC_USER" - useradd -r -s /usr/sbin/nologin -d /nonexistent "$SVC_USER" 2>/dev/null || true -fi - -# Sudo only if not root -[ "$EUID" -eq 0 ] && SUDO="" || SUDO="sudo" - -# ============================================================ -# PATHS -# ============================================================ -REPO_DIR="$(cd "$(dirname "$0")" && pwd)" -INSTALL_DIR="/opt/nextwks" -BIN_DIR="${INSTALL_DIR}/bin" -DATA_DIR="${INSTALL_DIR}/data" -STATIC_DIR="${INSTALL_DIR}/static" -CONFIG_FILE="${INSTALL_DIR}/config.yaml" ENV_FILE="${REPO_DIR}/.env" AUTHELIA_DIR="/opt/authelia" AUTHELIA_CONFIG="${AUTHELIA_DIR}/configuration.yml"