vcarbs

Cem's Auto Rice Bootstrapping Scripts, for Void Linux
git clone git://git.ckyln.com/vcarbs.git
Log | Files | Refs | README | LICENSE

commit 15e5ece3520f2d299095432a31d6fcabdb81971a
parent bdbc2c06162ac18b8ea0085f1c125fefa6efa6d8
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 21 Nov 2019 10:40:09 +0300

fix umaskfix function

Diffstat:
Mcarbs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/carbs b/carbs @@ -209,8 +209,8 @@ postinstall() { umaskfix() { - out "Setting default umask to 022" - printf "Defaults umask = 022\\n" >> /etc/sudoers.d/carbs + out "Setting default umask to 022 and adding user to sudoers with NOPASSWD" + su -c "printf '$1 ALL=(ALL) NOPASSWD: ALL\nDefaults umask = 022\n' > /etc/sudoers.d/carbs" } if [ $interactive = 1 ]; then