Last active
November 23, 2022 12:15
-
-
Save vergissberlin/2bd3bcf5668cd772a09f2dcb919feec9 to your computer and use it in GitHub Desktop.
Create new TYPO3 instances in seconds. It is based on DDEV.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Open dialog to ask for application name | |
dialog --title "Application Name" --inputbox "Enter the name of the application" 8 60 2> /tmp/appname | |
appname=$(cat /tmp/appname) | |
# Open dialog to select application version from 9 to 12 | |
dialog --title "Application Version" --radiolist "Select the version of the application" 20 51 4 9 "TYPO3 9" on 10 "TYPO3 10" off 11 "TYPO3 11" off 12 "TYPO3 12" off 2> /tmp/appversion | |
appversion=$(cat /tmp/appversion) | |
# Create app directory | |
mkdir ./$(cat /tmp/appname) | |
# Change to app directory | |
cd ./$(cat /tmp/appname) | |
# Create app | |
ddev config --project-type=typo3 --docroot=public --create-docroot | |
ddev config --php-version 8.0 | |
# Installation | |
ddev composer create "typo3/cms-base-distribution:^$(cat /tmp/appversion)" --no-interaction | |
## Install introduction package | |
ddev composer require typo3/cms-introduction -W | |
# Setup with CLI | |
ddev typo3cms install:setup \ | |
--force \ | |
--no-interaction \ | |
--skip-integrity-check \ | |
--database-driver=mysqli \ | |
--database-socket="" \ | |
--database-user-name=db \ | |
--database-user-password=db \ | |
--database-host-name=ddev-t3-cli-install-db \ | |
--database-port=3306 \ | |
--database-name=db \ | |
--use-existing-database \ | |
--admin-user-name=admin \ | |
--admin-password=admin123 \ | |
--site-setup-type=no \ | |
--site-base-url="/" \ | |
--site-setup-type="no" \ | |
--web-server-config="apache" \ | |
--site-name="${appname}" | |
ddev describe | |
ddev launch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With dialog looks like so: