Skip to content

Commit

Permalink
fix user/group permission not set correctly in persist
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 4, 2024
1 parent 2bd09dc commit 8495848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create-directories.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ fi
realSource="$(realpath -m "$sourceBase$target")"
if [[ ! -d "$realSource" ]]; then
printf "Warning: Source directory '%s' does not exist; it will be created for you with the following permissions: owner: '%s:%s', mode: '%s'.\n" "$realSource" "$user" "$group" "$mode"
mkdir --mode="$mode" "$realSource"
chown "$user:$group" "$realSource"
mkdir "$realSource"
fi
chown "$user:$group" "$realSource"
chmod "$mode" "$realSource"

[[ -d "$target" ]] || mkdir "$target"

Expand Down

0 comments on commit 8495848

Please sign in to comment.