Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "Please insert your typo3.org username"
  4. read USERNAME
  5. echo "Your username is set to $USERNAME"
  6. echo
  7. echo
  8. echo "Please insert your Database host's IP address (e.g. 127.0.0.1)"
  9. echo "Pleas note that using 'localhost' is not recommended"
  10. read DBHOST
  11. echo "Your DB host is set to $DBHOST"
  12. echo
  13. echo
  14. echo "Please insert your Database name (e.g. phoenix) "
  15. read DBNAME
  16. echo "Your DB name is set to $DBNAME"
  17. echo
  18. echo
  19. echo "Please insert your Database Username"
  20. read DBUSER
  21. echo "Your DB username is set to $DBUSER"
  22. echo
  23. echo
  24. echo "Please insert your Database password (will not be printed)"
  25. read -s DBPASS
  26. echo "Your Database password is set"
  27. echo
  28. echo
  29. echo "Start git clone to current directory. Proceed?"
  30. read -p "Press any key to start backup..."
  31.  
  32. git clone --recursive git://git.typo3.org/TYPO3v5/Distributions/Base.git TYPO3v5
  33.  
  34. cd TYPO3v5/
  35.  
  36. scp -p -P 29418 $USERNAME@review.typo3.org:hooks/commit-msg .git/hooks/
  37.  
  38. git submodule foreach 'scp -p -P 29418 $USERNAME@review.typo3.org:hooks/commit-msg .git/hooks/'
  39. git submodule foreach 'git config remote.origin.push HEAD:refs/for/master'
  40. git submodule foreach 'git checkout master; git pull'
  41.  
  42. # Create file Configuration/Settings.yaml
  43.  
  44. echo "TYPO3:" >> Configuration/Settings.yaml
  45. echo " FLOW3:" >> Configuration/Settings.yaml
  46. echo " persistence:" >> Configuration/Settings.yaml
  47. echo " backendOptions:" >> Configuration/Settings.yaml
  48. echo " driver: 'pdo_mysql'" >> Configuration/Settings.yaml
  49. echo " dbname: '$DBNAME' # adjust to your database name" >> Configuration/Settings.yaml
  50. echo " user: '$DBUSER' # adjust to your database user" >> Configuration/Settings.yaml
  51. echo " password: '$DBPASS' # adjust to your database password" >> Configuration/Settings.yaml
  52. echo " host: '$DBHOST' # adjust to your database host" >> Configuration/Settings.yaml
  53. echo " path: '$DBHOST' # adjust to your database host" >> Configuration/Settings.yaml
  54. echo " port: 3306" >> Configuration/Settings.yaml
  55. echo "# doctrine:" >> Configuration/Settings.yaml
  56. echo " # If you have APC, you should consider using it for Production," >> Configuration/Settings.yaml
  57. echo " # also MemcacheCache and XcacheCache exist." >> Configuration/Settings.yaml
  58. echo "# cacheImplementation: 'Doctrine\Common\Cache\ApcCache'" >> Configuration/Settings.yaml
  59. echo " # when using MySQL and UTF-8, this should help with connection encoding issues" >> Configuration/Settings.yaml
  60. echo "# dbal:" >> Configuration/Settings.yaml
  61. echo "# sessionInitialization: 'SET NAMES utf8 COLLATE utf8_unicode_ci'" >> Configuration/Settings.yaml
  62.  
  63. ./flow3 flow3:cache:flush
  64. ./flow3 flow3:core:compile
  65. ./flow3 flow3:doctrine:migrate
  66. ./flow3 typo3:site:import < Packages/Sites/TYPO3/PhoenixDemoTypo3Org/Resources/Private/Content/Sites.xml
  67.  
  68. clear
  69. echo "Installation of TYPO3 phoenix finished. If you are using xdebug pleas make sure that
  70. xdebug.max_nesting_level is set to a value like 1000 inside php.ini"
  71. echo
  72. echo "Please have fun with your new system! Inspir people to share"
  73. echo
  74. echo
  75. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement