From 6bce4f9cf187231b0995e1c7c98aeac670538d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Alf=C3=B6ldi?= Date: Fri, 27 Feb 2026 18:02:00 +0100 Subject: [PATCH] fixin post-install --- deployment/post-install.sh | 26 ++++++++++++++++++-------- templates/user-data.tmpl | 1 + 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/deployment/post-install.sh b/deployment/post-install.sh index ccfe471..f2ff014 100755 --- a/deployment/post-install.sh +++ b/deployment/post-install.sh @@ -126,13 +126,12 @@ function displaylink_driver() { echo displaylink_driver >>/tmp/installer } -function main() { - desktop || true - docker || true - intune || true - nix_home_manager || true - displaylink_driver || true +function zscaler() { + apt install /home/${TARGET_USER}/zscaler-client_3.7.1.71-1_amd64.deb -y + echo zscaler >>/tmp/installer +} +function dash_to_panel() { # ─── DASH TO PANEL ─────────────────────────────────────────────────────────── info "Installing Dash to Panel..." sudo -u "$TARGET_USER" bash -c ' @@ -143,6 +142,17 @@ function main() { ' dconf update + echo dash_to_panel >>/tmp/installer +} + +function main() { + desktop || true + docker || true + intune || true + nix_home_manager || true + displaylink_driver || true + zscaler || true + dash_to_panel || true # ─── SSH ───────────────────────────────────────────────────────────────────── info "Enabling SSH..." @@ -150,13 +160,13 @@ function main() { # ─── (passwordless for "$TARGET_USER") ───────────────────────────────────────── info "Configuring sudoers..." - echo "$TARGET_USER ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/$TARGET_USER" + echo "$TARGET_USER ALL=(ALL) NOPASSWD:ALL" >"/etc/sudoers.d/$TARGET_USER" chmod 440 "/etc/sudoers.d/$TARGET_USER" info "Post-install complete ✓" systemctl start gdm } -if [[ "$1" = "main" ]]; then +if [[ "${1:-NOPE}" = "main" ]]; then main fi diff --git a/templates/user-data.tmpl b/templates/user-data.tmpl index 3a2b0d9..e0d114b 100644 --- a/templates/user-data.tmpl +++ b/templates/user-data.tmpl @@ -178,6 +178,7 @@ autoinstall: - bash -x /cdrom/nocloud/wifi.sh - mkdir -p /target/home/${TARGET_USER}/nocloud - cp /cdrom/nocloud/* /target/home/${TARGET_USER}/nocloud/ + - chown ${TARGET_USER}:${TARGET_USER} -R /target/home/${TARGET_USER}/nocloud/ updates: all shutdown: poweroff