mirror of
https://github.com/spirit-x64/scripts.git
synced 2024-11-23 20:33:11 +03:00
create
This commit is contained in:
parent
b50e6ccab1
commit
9f0d40366d
23
init-void.sh
Executable file
23
init-void.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$USERNAME" ]; then
|
||||
USERNAME="spirit"
|
||||
fi
|
||||
|
||||
cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
|
||||
|
||||
xbps-install -Suy xbps
|
||||
xbps-install -uy
|
||||
xbps-install -y base-system
|
||||
xbps-remove -y base-voidstrap
|
||||
xbps-reconfigure -fa
|
||||
|
||||
useradd -m -G wheel -s /bin/bash $USERNAME
|
||||
ed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
||||
|
||||
if [[ "$1" == "--wsl" ]]; then
|
||||
cat <<EOF > /etc/wsl.conf
|
||||
[user]
|
||||
default=$USERNAME
|
||||
EOF
|
||||
fi
|
Loading…
Reference in New Issue
Block a user