Skip to content

Commit

Permalink
Merge pull request LukeSmithxyz#213 from jlaw/patch-1
Browse files Browse the repository at this point in the history
fix: chown parent directory
  • Loading branch information
LukeSmithxyz authored Apr 24, 2020
2 parents 2db3c0f + 7516755 commit 370808f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;}

Expand Down

0 comments on commit 370808f

Please sign in to comment.