@@ -24,34 +24,23 @@ if ( ! command -v drush > /dev/null ); then
2424 export PATH=" ` pwd` /vendor/bin:$PATH "
2525fi
2626
27- # we need to preserve gitconfig if it already exists
28- if [ -f ~ /.gitconfig ]; then
29- gitconfig_existed=true
30- fi
31- # ownership of the workspace directory won't match when using bindfs
32- git config --global --add safe.directory " $( pwd) "
33- # gh runs git, so we need to set the safe.directory in order for it to work
34- gh release download --clobber --pattern ' *.gz'
35- # but later on vscode will try setting global git config (credential helper, etc) ONLY if gitconfig doesn't exist
36- if [ ! $gitconfig_existed ]; then
37- rm ~ /.gitconfig
38- fi
39- # FWIW vscode will also fix the safe.directory setting
40-
41- tar zx --no-same-permissions --strip-components 1 -C web/sites/default/files -f files.tar.gz
42- rm files.tar.gz
27+ # FIXME
28+ # this script used to download database/files from github packages
29+ # now we need to download from pantheon backups instead
30+ # tar zx --no-same-permissions --strip-components 1 -C web/sites/default/files -f files.tar.gz
31+ # rm files.tar.gz
4332
44- # no-same-permissions doesn't seem to work so we fix it here
45- sudo find web/sites/default/files -type d -exec chmod g+ws {} +
46- sudo find web/sites/default/files -type f -exec chmod g+w {} +
33+ # # no-same-permissions doesn't seem to work so we fix it here
34+ # sudo find web/sites/default/files -type d -exec chmod g+ws {} +
35+ # sudo find web/sites/default/files -type f -exec chmod g+w {} +
4736
4837# the first time we run this script the default umask is still in effect,
4938# which messes up permissions on the profiler directory that gets created when the caches are rebuilt by db-rebuild.sh
5039umask 002
5140
5241sudo service mariadb start
53- build/db-rebuild.sh database.sql.gz
54- rm database.sql.gz
42+ # build/db-rebuild.sh database.sql.gz
43+ # rm database.sql.gz
5544
5645# Run local devcontainer lifecycle scripts
5746if [ -x .devcontainer/updateContent.sh ]; then
0 commit comments