Advertisement
Guest User

Untitled

a guest
May 13th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 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 web/concrete/bin/concrete5
  16.  
  17. # Reset C5 installation
  18. web/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 web/concrete/vendor
  29. cd web/concrete
  30. composer install
  31. cd ../../
  32.  
  33. # Install concrete5
  34. web/concrete/bin/concrete5 c5:install --no-interaction \
  35. --db-server=$DB_HOST \
  36. --db-username=$DB_USER \
  37. --db-password=$DB_PASS \
  38. --db-database=$DB_DBAS \
  39. --site=concrete5 \
  40. --admin-email=$ADMIN_EMAIL \
  41. --admin-password=$ADMIN_PASS \
  42. --starting-point=elemental_full
  43.  
  44. # Disabling news overlay
  45. web/concrete/bin/concrete5 c5:config set -g concrete.external.news_overlay false
  46.  
  47. # Disabling intro guide
  48. web/concrete/bin/concrete5 c5:config set -g concrete.misc.help_overlay false
  49.  
  50. # Show errors
  51. web/concrete/bin/concrete5 c5:config set -g concrete.debug.display_errors true
  52.  
  53. # Show detailed errors
  54. web/concrete/bin/concrete5 c5:config set -g concrete.debug.detail debug
  55.  
  56. # Choose locale on login page
  57. web/concrete/bin/concrete5 c5:config set -g concrete.i18n.choose_language_login true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement