mirror of
https://github.com/spirit-x64/scripts.git
synced 2024-11-23 23:43: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
|
shift
|
||||||
done
|
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
|
if command -v doas &> /dev/null; then
|
||||||
doas="doas"
|
doas="doas"
|
||||||
else
|
else
|
||||||
doas="sudo"
|
doas="sudo"
|
||||||
fi
|
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
|
# update conflicted deps
|
||||||
$doas xbps-install -yu util-linux
|
$doas xbps-install -yu util-linux
|
||||||
# install deps required for setup
|
# install deps required for setup
|
||||||
|
Loading…
Reference in New Issue
Block a user