entrypoint.sh 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # Prepare
  3. cd /var/www/typo3
  4. mv /var/www/composer.phar /var/www/typo3/composer.phar
  5. ln -s /var/opentalent/git/ot_typo3/install/composer.json /var/www/typo3/composer.json
  6. # Install Typo3 and extensions
  7. php composer.phar install
  8. ln -s /var/opentalent/git/ot_typo3/ot_templating /var/www/typo3/public/typo3conf/ext/ot_templating
  9. ln -s /var/opentalent/git/ot_typo3/ot_connect /var/www/typo3/public/typo3conf/ext/ot_connect
  10. ln -s /var/opentalent/git/ot_typo3/ot_optimizer /var/www/typo3/public/typo3conf/ext/ot_optimizer
  11. ln -s /var/opentalent/git/ot_typo3/ot_admin /var/www/typo3/public/typo3conf/ext/ot_admin
  12. php composer.phar dumpautoload
  13. # Add custom configuration
  14. ln -s /var/opentalent/git/ot_typo3/docker/LocalConfiguration.php /var/www/typo3/public/typo3conf/LocalConfiguration.php
  15. mkdir -p /var/www/typo3/config
  16. ln -s /var/opentalent/git/ot_typo3/docker/sites.tar.gz /var/www/typo3/config/sites.tar.gz
  17. tar -xzf /var/www/typo3/config/sites.tar.gz -C /var/www/typo3/config/
  18. # Finalize
  19. ln -s /var/opentalent/git/ot_typo3/install/cli /var/www/typo3/cli
  20. chown -R 1000:www-data /var/www/typo3
  21. chown -R 1000:www-data /var/opentalent/git/ot_typo3
  22. chmod -R 771 /var/www/typo3
  23. touch /var/www/typo3/public/typo3conf/ENABLE_INSTALL_TOOL
  24. # Continue with apache job (without it, docker exits here)
  25. apache2-foreground