swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

commit 1e821cd593017b9f749cc278ca0ca7e23734f003
parent 0dc3d9d89616ad35adb9592f59de6676cd733ff5
Author: awy <awy@awy.one>
Date:   Tue, 13 May 2025 16:47:38 +0300

properly define og user

Diffstat:
Mrice.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/rice.sh b/rice.sh @@ -7,18 +7,16 @@ if [ "$(id -u)" -ne 0 ] exit fi -PERMUSER="$(id -nu "1000")" - -id "$PERMUSER" > /dev/null 2>&1 || { echo "User $PERMUSER does not exist. Exiting."; exit 1; } - if [ -x "$(command -v doas)" ]; then evalcommand="doas -u $PERMUSER" cp /etc/doas.conf /etc/doas.bak echo "permit nopass :wheel" > /etc/doas.conf + PERMUSER=$DOAS_USER else evalcommand="sudo -u $PERMUSER" echo "%wheel ALL=(ALL) NOPASSWD: ALL Defaults:%wheel,root runcwd=*" >/etc/sudoers.d/temp + PERMUSER=$SUDO_USER fi run_as_user() {