Skip to content

Commit

Permalink
uid/gid update for OSX kudulab#8
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzo committed Sep 13, 2019
1 parent 3ae5103 commit a4c3f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_scripts/src/etc_dojo.d/scripts/50-fix-uid-gid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ fi

# use -n option which is the same as --numeric-uid-gid on Debian/Ubuntu,
# but on Alpine, there is no --numeric-uid-gid option
newuid=$(ls -n -d "${dojo_work}" | awk '{ print $3 }')
newgid=$(ls -n -d "${dojo_work}" | awk '{ print $4 }')
newuid=$(sudo -u "${owner_username}" ls -n -d "${dojo_work}" | awk '{ print $3 }')
newgid=$(sudo -u "${owner_username}" ls -n -d "${dojo_work}" | awk '{ print $4 }')
olduid=$(ls -n -d ${dojo_home} | awk '{ print $3 }')
oldgid=$(ls -n -d ${dojo_home} | awk '{ print $4 }')

Expand Down

0 comments on commit a4c3f57

Please sign in to comment.