diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 195a0e217..4c35d5d23 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,9 +17,9 @@ "--device=/dev/kvm" ], - // Use 'postCreateCommand' to run commands after the container is created - "postCreateCommand": "bash .devcontainer/setup.sh", - + // Runs each time the container starts/restarts + "postStartCommand": "bash .devcontainer/setup.sh", + "customizations": { "vscode": { "extensions": [ diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index db7b7196e..052a7d0c1 100644 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -2,4 +2,3 @@ # Change device ownership sudo chown -R $REMOTE_USER:$REMOTE_GROUP $DEVICE -