Skip to content

Commit

Permalink
Update fulloto.sh
Browse files Browse the repository at this point in the history
Kullanıcı ekleme işlemini run_arch_chroot fonksiyonundan kaldır

- run_arch_chroot fonksiyonundaki kullanıcı ekleme işlemini kaldırdım.
- Kullanıcı ekleme işlemi sadece set_user_and_password fonksiyonunda yapılacak şekilde düzenlendi.
  • Loading branch information
yuceltoluyag committed Aug 3, 2024
1 parent 55df33a commit eb85f58
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions fulloto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ run_arch_chroot() {
fi
grub-mkconfig -o /boot/grub/grub.cfg
useradd -m -g users -G wheel -s /bin/bash "$username"
echo "${username} ALL=(ALL:ALL) ALL" >> /etc/sudoers
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
# Bu kısmı kaldırıyoruz
# useradd -m -g users -G wheel -s /bin/bash "$username"
# echo "${username} ALL=(ALL:ALL) ALL" >> /etc/sudoers
# echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
# echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
EOF
}

Expand All @@ -281,7 +282,6 @@ main() {
check_internet
select_disk

# Disk kontrol ve montaj adımlarını kaldırıyoruz
partition_disk "$DISK"
format_disk "$DISK"

Expand Down Expand Up @@ -313,5 +313,3 @@ main() {
}

main


0 comments on commit eb85f58

Please sign in to comment.