Skip to content

Commit e3de0d9

Browse files
committed
clean up scripts
1 parent 6a24565 commit e3de0d9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@
7676
// See: https://github.com/devcontainers/spec/issues/132
7777
"source=${localEnv:HOME},target=/mnt/home/coder,type=bind,readonly"
7878
],
79-
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
80-
"postStartCommand": "sudo service docker start"
79+
"postCreateCommand": ["./.devcontainer/scripts/post_create.sh"],
80+
"postStartCommand": ["./.devcontainer/scripts/post_start.sh"]
8181
}

.devcontainer/scripts/post_start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
# Start Docker service if not already running.
4+
sudo service docker start

0 commit comments

Comments
 (0)