mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 17:11:34 -05:00
Update install.sh
This commit is contained in:
parent
48697203ba
commit
d421ed5a56
16
install.sh
16
install.sh
@ -277,17 +277,15 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||||||
echo "Creating GRUB config file."
|
echo "Creating GRUB config file."
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
||||||
|
|
||||||
|
#Creating wheel user
|
||||||
|
read -r -p "Please choose an admin user to create: " USER
|
||||||
|
echo "Creating user $USER"
|
||||||
|
useradd -m -g wheel $USER
|
||||||
|
passwd $USER
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#Creating Wheel user
|
#Giving wheel user sudo access
|
||||||
read -r -p "Please choose an admin user to create: " USER
|
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /mnt/etc/sudoers
|
||||||
|
|
||||||
# Create user
|
|
||||||
echo "Creating user $USER"
|
|
||||||
useradd -m -g wheel $USER
|
|
||||||
passwd $USER
|
|
||||||
|
|
||||||
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /etc/sudoers
|
|
||||||
|
|
||||||
# Enabling auto-trimming service.
|
# Enabling auto-trimming service.
|
||||||
systemctl enable fstrim.timer --root=/mnt &>/dev/null
|
systemctl enable fstrim.timer --root=/mnt &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user