fixin post-install

This commit is contained in:
Zsolt Alföldi
2026-02-27 18:02:00 +01:00
parent 0641be36e6
commit 6bce4f9cf1
2 changed files with 19 additions and 8 deletions

View File

@@ -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