Initial commit
This commit is contained in:
56
assets/templates/commands/install-v13
Normal file
56
assets/templates/commands/install-v13
Normal file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Description: Install TYPO3 13.4 LTS with your extension
|
||||
## Usage: install-v13
|
||||
## Example: ddev install-v13
|
||||
|
||||
VERSION=v13
|
||||
|
||||
rm -rf /var/www/html/$VERSION/*
|
||||
mkdir -p /var/www/html/$VERSION/
|
||||
echo "{}" > /var/www/html/$VERSION/composer.json
|
||||
composer config extra.typo3/cms.web-dir public -d /var/www/html/$VERSION
|
||||
composer config repositories.$EXTENSION_KEY path ../../$EXTENSION_KEY -d /var/www/html/$VERSION
|
||||
composer config --no-plugins allow-plugins.typo3/cms-composer-installers true -d /var/www/html/$VERSION
|
||||
composer config --no-plugins allow-plugins.typo3/class-alias-loader true -d /var/www/html/$VERSION
|
||||
composer req t3/cms:'^13' $PACKAGE_NAME:'*@dev' --no-progress -n -d /var/www/html/$VERSION
|
||||
composer req typo3/cms-extensionmanager --no-progress -n -d /var/www/html/$VERSION
|
||||
composer req --dev typo3/cms-styleguide --no-progress -n -d /var/www/html/$VERSION
|
||||
composer req typo3/cms-introduction --no-progress -n -d /var/www/html/$VERSION
|
||||
|
||||
cd /var/www/html/$VERSION
|
||||
|
||||
mysql -h db -u root -p"root" -e "DROP DATABASE IF EXISTS ${VERSION};"
|
||||
mysql -h db -u root -p"root" -e "CREATE DATABASE ${VERSION};"
|
||||
|
||||
vendor/bin/typo3 setup -n --dbname=$VERSION --password=$TYPO3_DB_PASSWORD --create-site="https://${VERSION}.{{DDEV_SITENAME}}.ddev.site" --admin-user-password=$TYPO3_SETUP_ADMIN_PASSWORD
|
||||
|
||||
vendor/bin/typo3 configuration:set 'BE/debug' 1
|
||||
vendor/bin/typo3 configuration:set 'FE/debug' 1
|
||||
vendor/bin/typo3 configuration:set 'SYS/devIPmask' '*'
|
||||
vendor/bin/typo3 configuration:set 'SYS/displayErrors' 1
|
||||
vendor/bin/typo3 configuration:set 'SYS/trustedHostsPattern' '.*\.{{DDEV_SITENAME}}\.ddev\.site'
|
||||
vendor/bin/typo3 configuration:set 'MAIL/transport' 'smtp'
|
||||
vendor/bin/typo3 configuration:set 'MAIL/transport_smtp_server' 'localhost:1025'
|
||||
vendor/bin/typo3 configuration:set 'MAIL/defaultMailFromAddress' 'admin@example.com'
|
||||
vendor/bin/typo3 configuration:set 'GFX/processor' 'ImageMagick'
|
||||
vendor/bin/typo3 configuration:set 'GFX/processor_path' '/usr/bin/'
|
||||
|
||||
sed -i "/'deprecations'/,/^[[:space:]]*'disabled' => true,/s/'disabled' => true,/'disabled' => false,/" /var/www/html/$VERSION/config/system/settings.php
|
||||
|
||||
vendor/bin/typo3 extension:setup
|
||||
|
||||
vendor/bin/typo3 cache:flush
|
||||
|
||||
echo ""
|
||||
echo "✅ TYPO3 $VERSION installation complete!"
|
||||
echo "📦 Your extension is activated and ready to use"
|
||||
echo "📐 TYPO3 Styleguide is available for UI pattern reference"
|
||||
echo "📦 Introduction Package installed with demo content (86+ pages, 226+ content elements)"
|
||||
|
||||
# Auto-configure extension if configure script exists
|
||||
if [ -f "/mnt/ddev_config/commands/web/configure-{{EXTENSION_KEY}}" ]; then
|
||||
echo ""
|
||||
echo "🔧 Auto-configuring {{EXTENSION_KEY}} extension..."
|
||||
/mnt/ddev_config/commands/web/configure-{{EXTENSION_KEY}} $VERSION
|
||||
fi
|
||||
Reference in New Issue
Block a user