larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 370808fd66b6a9e45fe395514cc5b0b819fe71aa
parent 2db3c0f8c590bcfc801b39cc381677b6ffb76f56
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 24 Apr 2020 08:44:22 -0400

Merge pull request #213 from jlaw/patch-1

fix: chown parent directory
Diffstat:
Mlarbs.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/larbs.sh b/larbs.sh @@ -71,7 +71,7 @@ adduserandpass() { \ dialog --infobox "Adding user \"$name\"..." 4 50 useradd -m -g wheel -s /bin/bash "$name" >/dev/null 2>&1 || usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name":wheel /home/"$name" - repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel "$repodir" + repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel $(dirname "$repodir") echo "$name:$pass1" | chpasswd unset pass1 pass2 ;}