fixin post-install
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user