chore: update app-init.sh with linux host chown check
This commit is contained in:
parent
1a2996e5f6
commit
b951c80a4d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue