File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/devcontainers/php:8.3
1+ FROM mcr.microsoft.com/devcontainers/php:8.4
22
33# Change default umask and add user to web group so we can share write permission on web files
44# Configure pam_umask to set umask to 002 (works regardless of /etc/login.defs content)
Original file line number Diff line number Diff line change 11function devcontainer_on_create() {
2+ _cwd_workspace
3+
24 # Change default umask and add user to web group so we can share write permission on web files
35 sed -i ' s/^#umask\s*022/umask 002/' ~ /.profile
46 echo " umask 002" >> ~/.zshrc
@@ -91,6 +93,9 @@ function devcontainer_on_create() {
9193 if [ -x .devcontainer/onCreate.sh ]; then
9294 .devcontainer/onCreate.sh
9395 fi
96+
97+ # Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
98+ cd " $WORKSPACE_FOLDER "
9499}
95100
96101_devcontainer_on_create_desc=' runs when the devcontainer is created'
Original file line number Diff line number Diff line change 11function devcontainer_post_create() {
2+ _cwd_workspace
3+
24 # set global ServerName so that apachectl isn't chatty
35 if [[ -n " $CODESPACE_NAME " ]]; then
46 SERVER_NAME=" $CODESPACE_NAME -8080.app.github.dev"
@@ -27,6 +29,9 @@ function devcontainer_post_create() {
2729 if [ -x .devcontainer/postCreate.sh ]; then
2830 .devcontainer/postCreate.sh
2931 fi
32+
33+ # Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
34+ cd " $WORKSPACE_FOLDER "
3035}
3136
3237_devcontainer_post_create_desc=' runs after the devcontainer is created'
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ function devcontainer_update_content() {
1414 if [ -x .devcontainer/updateContent.sh ]; then
1515 .devcontainer/updateContent.sh
1616 fi
17+
18+ # Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
19+ cd " $WORKSPACE_FOLDER "
1720}
1821
1922_devcontainer_update_content_desc=' runs when devcontainer content needs updating'
You can’t perform that action at this time.
0 commit comments