| 123456789101112131415161718192021222324252627282930 |
- #!/bin/bash
- # Prepare
- cd /var/www/typo3
- mv /var/www/composer.phar /var/www/typo3/composer.phar
- ln -s /var/opentalent/git/ot_typo3/install/composer.json /var/www/typo3/composer.json
- # Install Typo3 and extensions
- php composer.phar install
- ln -s /var/opentalent/git/ot_typo3/ot_templating /var/www/typo3/public/typo3conf/ext/ot_templating
- ln -s /var/opentalent/git/ot_typo3/ot_connect /var/www/typo3/public/typo3conf/ext/ot_connect
- ln -s /var/opentalent/git/ot_typo3/ot_optimizer /var/www/typo3/public/typo3conf/ext/ot_optimizer
- ln -s /var/opentalent/git/ot_typo3/ot_admin /var/www/typo3/public/typo3conf/ext/ot_admin
- php composer.phar dumpautoload
- # Add custom configuration
- ln -s /var/opentalent/git/ot_typo3/docker/LocalConfiguration.php /var/www/typo3/public/typo3conf/LocalConfiguration.php
- mkdir -p /var/www/typo3/config
- ln -s /var/opentalent/git/ot_typo3/docker/sites.tar.gz /var/www/typo3/config/sites.tar.gz
- tar -xzf /var/www/typo3/config/sites.tar.gz -C /var/www/typo3/config/
- # Finalize
- ln -s /var/opentalent/git/ot_typo3/install/cli /var/www/typo3/cli
- chown -R 1000:www-data /var/www/typo3
- chown -R 1000:www-data /var/opentalent/git/ot_typo3
- chmod -R 771 /var/www/typo3
- touch /var/www/typo3/public/typo3conf/ENABLE_INSTALL_TOOL
- # Continue with apache job (without it, docker exits here)
- apache2-foreground
|