1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-09 12:11:33 -05:00

Only enable gdm service on desktop

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-05-31 22:04:33 -07:00
parent adcb55a6e0
commit fa114696fa
Signed by: Tomster
GPG Key ID: 555C902A34EC968F

View File

@ -425,11 +425,6 @@ EOF
## Give wheel user sudo access. ## Give wheel user sudo access.
sed -i 's/# \(%wheel ALL=(ALL\(:ALL\|\)) ALL\)/\1/g' /mnt/etc/sudoers 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 ## Enable services
systemctl enable apparmor --root=/mnt systemctl enable apparmor --root=/mnt
systemctl enable chronyd --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 enable systemd-oomd --root=/mnt
systemctl disable systemd-timesyncd --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. ## Set umask to 077.
sudo sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs 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 sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs