-
-
Save cinco/5d17180443d3c369a6d6e18261a32c00 to your computer and use it in GitHub Desktop.
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 -x | |
# | |
# Mautic Installation Shell to Cloud9: | |
# ---------- | |
# Version 2.0 | |
# By expertjtb | |
# INSTRUCTION: | |
# ---------- | |
# USE IT AT YOUR OWN RISK! | |
# LICENSE: GPL V2 | |
# VARIABLES | |
# ---------- | |
DOWNLOAD_URL="https://github.com/mautic/mautic/archive/2.7.0.zip" | |
DESTINATION="/home/ubuntu/workspace" | |
VERSION="2.7.0" | |
INSTALL_LEMP="yes" | |
LEMP_NGINX_CONFIG="https://gist.githubusercontent.com/expertjtb/13baa8d002cc42d9dd09f36deca23f01/raw/812327d4a6eb8c2f6a1d97e22b7a666644cb8e61/mautix-nginx" | |
# EXEC | |
# ---------- | |
cd ${DESTINATION} | |
if [ "$INSTALL_LEMP" = "yes" ]; then | |
curl -L https://raw.githubusercontent.com/GabrielGil/c9-lemp/master/install.sh | bash | |
sudo rm -f /etc/nginx/sites-enabled/c9 | |
sudo rm -f /etc/nginx/sites-available/c9 | |
sudo wget ${LEMP_NGINX_CONFIG} --output-document=/etc/nginx/sites-available/c9 | |
sudo chmod 755 /etc/nginx/sites-available/c9 | |
sudo ln -s /etc/nginx/sites-available/c9 /etc/nginx/sites-enabled/c9 | |
sudo apt-get -qq install mcrypt php7.0-mcrypt | |
lemp restart | |
lemp status | |
fi | |
wget ${DOWNLOAD_URL} | |
unzip ${VERSION}.zip | |
mv mautic-${VERSION}/* ./ | |
rm -rf mautic-${VERSION} | |
rm ${VERSION}.zip | |
composer install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment