Skip to content

Commit

Permalink
chore: update app-init.sh with linux host chown check
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed May 24, 2024
1 parent 1a2996e commit b951c80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/scripts/app-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

WORKSPACEDIR="/workspace"

# Handle Linux host mounting the workspace dir as root
if [ ! -O "$WORKSPACEDIR/ietf" ]; then
sudo chown -R dev:dev $WORKSPACEDIR
fi

# Start rsyslog service
sudo service rsyslog start &>/dev/null

# Add /workspace as a safe git directory
Expand Down

0 comments on commit b951c80

Please sign in to comment.