mirror of
https://github.com/spirit-x64/scripts.git
synced 2024-11-24 00:43:10 +03:00
configure doas
cause sodu sucks
or i dont know how to use it idk
This commit is contained in:
parent
082e4932bf
commit
8c7b996411
@ -15,6 +15,9 @@ xbps-reconfigure -fa
|
|||||||
useradd -m -G wheel -s /bin/bash $USERNAME
|
useradd -m -G wheel -s /bin/bash $USERNAME
|
||||||
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
||||||
|
|
||||||
|
xbps-install -y opendoas
|
||||||
|
bash -c "echo 'permit nopass $USERNAME as root' > /etc/doas.conf"
|
||||||
|
|
||||||
if [[ "$1" == "--wsl" ]]; then
|
if [[ "$1" == "--wsl" ]]; then
|
||||||
cat <<EOF > /etc/wsl.conf
|
cat <<EOF > /etc/wsl.conf
|
||||||
[user]
|
[user]
|
||||||
|
Loading…
Reference in New Issue
Block a user