chore: update app-init.sh with linux host chown check

This commit is contained in:
Nicolas Giard 2024-05-24 16:34:41 -04:00 committed by GitHub
parent 1a2996e5f6
commit b951c80a4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,12 @@
WORKSPACEDIR="/workspace" 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 sudo service rsyslog start &>/dev/null
# Add /workspace as a safe git directory # Add /workspace as a safe git directory