diff --git a/install.sh b/install.sh index 1768347..84f14c7 100644 --- a/install.sh +++ b/install.sh @@ -425,11 +425,6 @@ EOF ## Give wheel user sudo access. sed -i 's/# \(%wheel ALL=(ALL\(:ALL\|\)) ALL\)/\1/g' /mnt/etc/sudoers -## Enabling openssh server -if [ "${install_mode}" = 'server' ]; then - systemctl enable sshd --root=/mnt -fi - ## Enable services systemctl enable apparmor --root=/mnt systemctl enable chronyd --root=/mnt @@ -444,6 +439,14 @@ systemctl enable snapper-cleanup.timer --root=/mnt systemctl enable systemd-oomd --root=/mnt systemctl disable systemd-timesyncd --root=/mnt +if [ "${install_mode}" = 'desktop' ]; then + systemctl enable gdm --root=/mnt +fi + +if [ "${install_mode}" = 'server' ]; then + systemctl enable sshd --root=/mnt +fi + ## Set umask to 077. sudo sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs