Advertisement
Guest User

Untitled

a guest
Jul 6th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. REPO_PATH=concrete5-develop
  4.  
  5. DB_HOST=localhost
  6. DB_USER=root
  7. DB_PASS=
  8. DB_DBAS=concrete5
  9.  
  10. ADMIN_EMAIL=no-reply@localhost
  11. ADMIN_PASS=concrete5
  12.  
  13. cd $REPO_PATH
  14.  
  15. chmod +x concrete/bin/concrete5
  16.  
  17. # Reset C5 installation
  18. concrete/bin/concrete5 c5:reset --no-interaction --force
  19.  
  20. # Remove and reinstall node modules
  21. cd build
  22. rm -rf node_modules
  23.  
  24. npm install
  25. cd ..
  26.  
  27. # Reset composer packages
  28. rm -rf concrete/vendor
  29. composer install
  30.  
  31. # Install concrete5
  32. concrete/bin/concrete5 c5:install --no-interaction \
  33. --db-server=$DB_HOST \
  34. --db-username=$DB_USER \
  35. --db-password=$DB_PASS \
  36. --db-database=$DB_DBAS \
  37. --site=concrete5 \
  38. --admin-email=$ADMIN_EMAIL \
  39. --admin-password=$ADMIN_PASS \
  40. --starting-point=elemental_full
  41.  
  42. # Disabling news overlay
  43. concrete/bin/concrete5 c5:config set -g concrete.external.news_overlay false
  44.  
  45. # Disabling intro guide
  46. concrete/bin/concrete5 c5:config set -g concrete.misc.help_overlay false
  47.  
  48. # Show errors
  49. concrete/bin/concrete5 c5:config set -g concrete.debug.display_errors true
  50.  
  51. # Show detailed errors
  52. concrete/bin/concrete5 c5:config set -g concrete.debug.detail debug
  53.  
  54. # Choose locale on login page
  55. concrete/bin/concrete5 c5:config set -g concrete.i18n.choose_language_login true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement