mirror of
https://github.com/spirit-x64/scripts.git
synced 2024-11-23 23:33:10 +03:00
use doas
after configuring it
This commit is contained in:
parent
9a6e3f642e
commit
43815bf6a7
@ -39,21 +39,22 @@ while [ $# -gt 0 ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
# update the package manager
|
||||
sudo xbps-install -Suy xbps
|
||||
|
||||
# setup doas
|
||||
if [ install_doas -eq 1 ]; then
|
||||
sudo xbps-install -y opendoas
|
||||
sudo bash -c "echo 'permit nopass $USER as root' > /etc/doas.conf"
|
||||
fi
|
||||
|
||||
if command -v doas &> /dev/null; then
|
||||
doas="doas"
|
||||
else
|
||||
doas="sudo"
|
||||
fi
|
||||
|
||||
# update the package manager
|
||||
$doas xbps-install -Suy xbps
|
||||
|
||||
# setup doas
|
||||
if [ install_doas -eq 1 ]; then
|
||||
$doas xbps-install -y opendoas
|
||||
$doas bash -c "echo 'permit nopass $USER as root' > /etc/doas.conf"
|
||||
doas="doas"
|
||||
fi
|
||||
|
||||
# update conflicted deps
|
||||
$doas xbps-install -yu util-linux
|
||||
# install deps required for setup
|
||||
|
Loading…
Reference in New Issue
Block a user