Skip to content

Commit b951c80

Browse files
authored
chore: update app-init.sh with linux host chown check
1 parent 1a2996e commit b951c80

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/scripts/app-init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
WORKSPACEDIR="/workspace"
44

5+
# Handle Linux host mounting the workspace dir as root
6+
if [ ! -O "$WORKSPACEDIR/ietf" ]; then
7+
sudo chown -R dev:dev $WORKSPACEDIR
8+
fi
9+
10+
# Start rsyslog service
511
sudo service rsyslog start &>/dev/null
612

713
# Add /workspace as a safe git directory

0 commit comments

Comments
 (0)