Skip to content

Instantly share code, notes, and snippets.

@marcobiedermann
Last active January 4, 2020 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcobiedermann/88c5a1d20d632745e0cbd8da9b55f829 to your computer and use it in GitHub Desktop.
Save marcobiedermann/88c5a1d20d632745e0cbd8da9b55f829 to your computer and use it in GitHub Desktop.
Contao Core Installation Setup
#!/usr/bin/env bash
# Contao Core releases: https://github.com/contao/core/releases
# Contao Check releases: https://github.com/contao/check/releases
CONTAO_CORE_VERSION="3.5.40"
CONTAO_CHECK_VERSION="12.2"
# Install Contao
wget https://github.com/contao/core/releases/download/${CONTAO_CORE_VERSION}/contao-${CONTAO_CORE_VERSION}.tar.gz
tar -xzf contao-${CONTAO_CORE_VERSION}.tar.gz
rm -f contao-${CONTAO_CORE_VERSION}.tar.gz
cd contao-${CONTAO_CORE_VERSION}
cp -rf . ..
cd ..
rm -rf contao-${CONTAO_CORE_VERSION}
# Install Contao Check
wget https://github.com/contao/check/archive/${CONTAO_CHECK_VERSION}.tar.gz
tar -xzf ${CONTAO_CHECK_VERSION}.tar.gz
rm -rf ${CONTAO_CHECK_VERSION}.tar.gz
cd check-${CONTAO_CHECK_VERSION}
cp -rf . ..
cd ..
rm -rf check-${CONTAO_CHECK_VERSION}
# Rename .htaccess
cp .htaccess.default .htaccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment