From 9fe9c4f1a03452c72df1beeaf633e12b23f24b88 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Mon, 6 Apr 2026 19:49:18 +0200 Subject: [PATCH] add ldap --- install/fleet-install.sh | 4 +++- install/kan-install.sh | 2 +- install/lychee-install.sh | 11 +++++++---- install/puter-install.sh | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/install/fleet-install.sh b/install/fleet-install.sh index c6ae4697..72a4f6b7 100644 --- a/install/fleet-install.sh +++ b/install/fleet-install.sh @@ -35,6 +35,7 @@ fetch_and_deploy_gh_release "fleet" "fleetdm/fleet" "prebuild" "latest" "/opt/fl msg_info "Configuring Application" chmod +x /opt/fleet/fleet JWT_KEY=$(openssl rand -base64 32) +PRIVATE_KEY=$(openssl rand -base64 32) cat </opt/fleet/.env FLEET_MYSQL_ADDRESS=127.0.0.1:3306 FLEET_MYSQL_DATABASE=fleet @@ -42,6 +43,7 @@ FLEET_MYSQL_USERNAME=fleet FLEET_MYSQL_PASSWORD=${FLEET_DB_PASS} FLEET_SERVER_ADDRESS=0.0.0.0:8080 FLEET_SERVER_TLS=false +FLEET_SERVER_PRIVATE_KEY=${PRIVATE_KEY} FLEET_AUTH_JWT_KEY=${JWT_KEY} FLEET_REDIS_ADDRESS=127.0.0.1:6379 FLEET_LOGGING_JSON=true @@ -50,7 +52,7 @@ msg_ok "Configured Application" msg_info "Running Database Migrations" set -a && source /opt/fleet/.env && set +a -$STD /opt/fleet/fleet prepare db +$STD /opt/fleet/fleet prepare db --no-prompt msg_ok "Ran Database Migrations" msg_info "Creating Service" diff --git a/install/kan-install.sh b/install/kan-install.sh index 50fd2720..9249a9cf 100644 --- a/install/kan-install.sh +++ b/install/kan-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db -NODE_VERSION="20" NODE_MODULES="pnpm" setup_nodejs +NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_tag "kan" "kanbn/kan" diff --git a/install/lychee-install.sh b/install/lychee-install.sh index 316712e5..2f854560 100644 --- a/install/lychee-install.sh +++ b/install/lychee-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ jpegoptim msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="bcmath,exif,gd,intl,imagick,redis,zip,pdo_pgsql,pcntl,ldap" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="bcmath,ldap,exif,gd,intl,imagick,redis,zip,pdo_pgsql,pcntl,ldap" setup_php setup_ffmpeg setup_imagemagick @@ -45,9 +45,10 @@ sed -i "s|^DB_PORT=.*|DB_PORT=5432|" .env sed -i "s|^#\?DB_DATABASE=.*|DB_DATABASE=${PG_DB_NAME}|" .env sed -i "s|^DB_USERNAME=.*|DB_USERNAME=${PG_DB_USER}|" .env sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=${PG_DB_PASS}|" .env -mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache public/dist +mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache public/dist public/uploads public/sym touch public/dist/user.css public/dist/custom.js -chmod -R 775 storage bootstrap/cache public/dist +chown -R www-data:www-data /opt/lychee +chmod -R 775 storage bootstrap/cache public/dist public/uploads public/sym msg_ok "Configured Application" msg_info "Running Database Migrations" @@ -65,9 +66,11 @@ cat </etc/caddy/Caddyfile encode gzip } EOF +usermod -aG www-data caddy msg_ok "Configured Caddy" -systemctl enable -q --now php${PHP_VER}-fpm caddy +systemctl enable -q --now php${PHP_VER}-fpm +systemctl restart caddy motd_ssh customize diff --git a/install/puter-install.sh b/install/puter-install.sh index b68d9d9e..8f0ad8c9 100644 --- a/install/puter-install.sh +++ b/install/puter-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ git msg_ok "Installed Dependencies" -NODE_VERSION="22" setup_nodejs +NODE_VERSION="24" setup_nodejs fetch_and_deploy_gh_release "puter" "HeyPuter/puter" "tarball"