Skip to content

Commit

Permalink
Do mkdir -p "$HOME" just in case adduser wasn't called
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Oct 12, 2021
1 parent c916cfa commit ce8f69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/opt/bin/run-as-user
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export HOME="$HOME/$PUSER"
getent group "$PGID" || addgroup "$PGROUP" --gid "$PGID"
getent passwd "$PUID" || adduser "$PUSER" --uid "$PUID" --gid "$PGID" --gecos "" --home "$HOME" --disabled-password
mkdir -p "$HOME"
chown --recursive "$PUID:$PGID" "$HOME"
chown -R "$PUID:$PGID" "$HOME"
) > /dev/null 2>&1

# run as normal user
Expand Down

0 comments on commit ce8f69b

Please sign in to comment.