mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 17:11:34 -05:00
Only enable gdm service on desktop
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
adcb55a6e0
commit
fa114696fa
13
install.sh
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user