Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion local/bin/db-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,7 @@ echo "Import completed with status code $?"

# update db with latest code/config changes
echo "Running drush:$DRUSHTASK to update DB with latest configs and baseline migrations."
eval "cd $WEBROOT && drush $DRUSHTASK"
eval "cd $WEBROOT && drush $DRUSHTASK"

# In case the drush command generated a new log file as the current user, make sure httpd can write to it
chmod -R g+w web/sites/default/files/private/logs
6 changes: 4 additions & 2 deletions local/etc/uceap.d/devcontainer_on_create.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
function devcontainer_on_create() {
# Change default umask and add user to web group so we can share write permission on web files
sed -i 's/^#umask\s*022/umask 002/' ~/.profile
echo "umask 002" >>~/.zshrc
echo "umask 002" >>~/.bashrc
echo "umask 002" | tee -a ~/.bashrc ~/.zshrc ~/.zshrc.local

# the first time we run this script the default umask is still in effect,
# which messes up permissions on the log file that gets created when we run drush deploy
Expand Down Expand Up @@ -58,6 +57,9 @@ function devcontainer_on_create() {
# The database image might be out of date so deploy any new changes from code
vendor/bin/drush deploy

# If the drush command generated a log file as the current user, make sure httpd can write to it
chmod -R g+w web/sites/default/files/private/logs

# Setup drush and other vendor binaries
echo "export PATH=\"$(pwd)/vendor/bin:\$PATH\"" | tee -a ~/.bashrc ~/.zshrc ~/.zshrc.local

Expand Down