Skip to content

Commit

Permalink
Restore postStartCommand.sh for backward compatibility (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernAtBosch authored Sep 6, 2024
1 parent 5ec28c1 commit 9c38f85
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions setup/src/common/scripts/postStartCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0

.devcontainer/scripts/upgrade-cli.sh
2 changes: 1 addition & 1 deletion setup/src/cpp/common/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
// "forwardPorts": [],
// Use 'onCreateCommand' to run commands when the container is created.
"onCreateCommand": "bash .devcontainer/scripts/onCreateCommand.sh",
"postStartCommand": "bash .devcontainer/scripts/upgrade-cli.sh",
"postStartCommand": "bash .devcontainer/scripts/postStartCommand.sh",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
2 changes: 1 addition & 1 deletion setup/src/python/common/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}
},
"onCreateCommand": "bash .devcontainer/scripts/onCreateCommand.sh",
"postStartCommand": "bash .devcontainer/scripts/upgrade-cli.sh",
"postStartCommand": "bash .devcontainer/scripts/postStartCommand.sh",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}

0 comments on commit 9c38f85

Please sign in to comment.