DO_GENCODE=1
DO_SCHEMA=1
DO_DATA=1
+ DEFAULT_DATA=civicrm_generated.mysql
DO_FLUSH=1
FOUND_ACTION=1
;;
if [ -n "$DO_DOWNLOAD" ]; then
pushd "$CALLEDPATH/.."
- COMPOSER=$(pickcmd composer composer.phar)
- $COMPOSER install
+ if [ "$GENCODE_CMS" != "Drupal8" ]; then
+ COMPOSER=$(pickcmd composer composer.phar)
+ $COMPOSER install
+ fi
- if has_commands bower karma ; then
+ if has_commands karma ; then
## dev dependencies have been installed globally; don't force developer to redownload
npm install --production
else
npm install
fi
-
- BOWER=$(pickcmd node_modules/bower/bin/bower bower)
- BOWER_HARD_RESET_TIME=1422672905
- if [ -d bower_components -a $( stat bower_components -c%W ) -lt $BOWER_HARD_RESET_TIME ]; then
- ## If you make a breaking change to bower.json, then update BOWER_HARD_RESET_TIME.
- ## Ex: If bower.json newly declares a dependency which had been loaded transitively,
- ## then bower may fail to update the dependency, so should bump BOWER_HARD_RESET_TIME.
- rm -rf bower_components
- fi
- $BOWER install
popd
fi
if [ -n "$DO_FLUSH" ]; then
pushd "$CALLEDPATH/.."
- # run the cli script to build the menu and the triggers
- "$PHP5PATH"php bin/cli.php -e System -a flush --triggers 1 --session 1
-
- # reset config_backend and userFrameworkResourceURL which gets set
+ # reset userFrameworkResourceURL which gets set
# when config object is initialized
- $MYSQLCMD -e "UPDATE civicrm_domain SET config_backend = NULL; UPDATE civicrm_setting SET value = NULL WHERE name = 'userFrameworkResourceURL';"
+ $MYSQLCMD -e "UPDATE civicrm_setting SET value = NULL WHERE name = 'userFrameworkResourceURL';"
popd
fi