From 98a1189f7c7727de2856a25a270398cb2786b4a8 Mon Sep 17 00:00:00 2001 From: aartoni Date: Wed, 6 Mar 2024 11:39:47 +0100 Subject: [PATCH] Fix manualinstall, delete temporary file --- static/larbs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/larbs.sh b/static/larbs.sh index f635791d4..0bc86699c 100755 --- a/static/larbs.sh +++ b/static/larbs.sh @@ -293,7 +293,7 @@ adduserandpass || error "Error adding username and/or password." # in a fakeroot environment, this is required for all builds with AUR. trap 'rm -f /etc/sudoers.d/larbs-temp' HUP INT QUIT TERM PWR EXIT echo "%wheel ALL=(ALL) NOPASSWD: ALL -Defaults:%wheel runcwd=*" >/etc/sudoers.d/larbs-temp +Defaults:%wheel,root runcwd=*" >/etc/sudoers.d/larbs-temp # Make pacman colorful, concurrent downloads and Pacman eye-candy. grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf @@ -375,5 +375,8 @@ echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-larbs-visudo-editor mkdir -p /etc/sysctl.d echo "kernel.dmesg_restrict = 0" > /etc/sysctl.d/dmesg.conf +# Cleanup +rm -f /etc/sudoers.d/larbs-temp + # Last message! Install complete! finalize