Initial commit
This commit is contained in:
54
assets/templates/commands/install-v12
Normal file
54
assets/templates/commands/install-v12
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Description: Install TYPO3 12.4 LTS with your extension
|
||||
## Usage: install-v12
|
||||
## Example: ddev install-v12
|
||||
|
||||
VERSION=v12
|
||||
|
||||
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:'^12' $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
|
||||
|
||||
TYPO3_INSTALL_DB_DBNAME=$VERSION
|
||||
vendor/bin/typo3 install:setup -n --database-name $VERSION
|
||||
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
|
||||
|
||||
sed -i -e "s/base: ht\//base: \//g" /var/www/html/$VERSION/config/sites/main/config.yaml
|
||||
sed -i -e 's/base: \/en\//base: \//g' /var/www/html/$VERSION/config/sites/main/config.yaml
|
||||
|
||||
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