Skip to content

Instantly share code, notes, and snippets.

@a3020
Last active May 3, 2018 11:26
Show Gist options
  • Save a3020/0014522db9bed185b83349881a16f011 to your computer and use it in GitHub Desktop.
Save a3020/0014522db9bed185b83349881a16f011 to your computer and use it in GitHub Desktop.
Reinstall concrete5
#!/bin/sh
REPO_PATH=concrete5-develop
DB_HOST=localhost
DB_USER=root
DB_PASS=
DB_DBAS=concrete5
ADMIN_EMAIL=no-reply@localhost
ADMIN_PASS=concrete5
cd $REPO_PATH
chmod +x concrete/bin/concrete5
# Reset C5 installation
concrete/bin/concrete5 c5:reset --no-interaction --force
# Remove and reinstall node modules
cd build
rm -rf node_modules
npm install
cd ..
# Reset composer packages
rm -rf concrete/vendor
composer install
# Install concrete5
concrete/bin/concrete5 c5:install --no-interaction \
--db-server=$DB_HOST \
--db-username=$DB_USER \
--db-password=$DB_PASS \
--db-database=$DB_DBAS \
--site=concrete5 \
--admin-email=$ADMIN_EMAIL \
--admin-password=$ADMIN_PASS \
--starting-point=elemental_full
# Disabling news overlay
concrete/bin/concrete5 c5:config set -g concrete.external.news_overlay false
# Disabling intro guide
concrete/bin/concrete5 c5:config set -g concrete.misc.help_overlay false
# Show errors
concrete/bin/concrete5 c5:config set -g concrete.debug.display_errors true
# Show detailed errors
concrete/bin/concrete5 c5:config set -g concrete.debug.detail debug
# Choose locale on login page
concrete/bin/concrete5 c5:config set -g concrete.i18n.choose_language_login true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment