X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=bin%2Fsetup.sh;h=683bf5775cf4f4a55d478ecd8b1af92c943c6dec;hb=b8be3222c1b9a6e5f660f8a6787641b0084a4da7;hp=5273907a6943f23b9d30f7b2d267fa33a7d405c7;hpb=1b9976cbf762dbf6513df8a4141626d2e5584171;p=civicrm-core.git diff --git a/bin/setup.sh b/bin/setup.sh index 5273907a69..683bf5775c 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -60,6 +60,7 @@ while getopts "aDgsdef" opt; do DO_GENCODE=1 DO_SCHEMA=1 DO_DATA=1 + DEFAULT_DATA=civicrm_generated.mysql DO_FLUSH=1 FOUND_ACTION=1 ;; @@ -140,18 +141,17 @@ set -x 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 install popd fi @@ -211,12 +211,9 @@ 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