Skip to content

Commit

Permalink
Have a drush cache rebuild first before entity update or update datab…
Browse files Browse the repository at this point in the history
…ase #15
  • Loading branch information
Natshah committed Jul 9, 2019
1 parent fb8d17e commit 920d949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/update/varbase-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ elif [ "$answer" != "${answer#[YyUu]}" ] ; then

echo -e "$(tput setaf 2)Updating the database for latest changes.$(tput sgr 0)";
echo -e "$(tput setaf 2)Updating the database for latest changes.$(tput sgr 0)" >> ${ERRORLOG};
$DRUSH cache-rebuild --yes;
$DRUSH entity-updates --yes;
$DRUSH updb --yes --strict=0 1> >(tee -a ${ERRORLOG} >&1) 2> >(tee -a ${ERRORLOG} >&2);
result="$?";
Expand Down

0 comments on commit 920d949

Please sign in to comment.