Last active
November 5, 2015 00:42
-
-
Save mreschke/6188bd73eade5a3d5a7d to your computer and use it in GitHub Desktop.
Configure mrcore5 to my dynatron liking
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 | |
# Setup mrcore5 to my (mreschke) personal dbox liking (including dynatron code)a | |
# Run from inside dbox php shell | |
# Be sure you have proper github ssh keys in the php container, test first | |
# mReschke 2015-11-04 | |
if [ "$EUID" -eq 0 ]; then | |
echo "Please run as regular (toor) user, not root" | |
exit 1 | |
fi | |
mrcore=/var/www/mrcore5 | |
if [ ! -d "/var/www/mrcore5" ]; then | |
echo "Installing mrcore5" | |
mkdir -p $mrcore/{Apps,Files,Modules,Themes} | |
mkdir -p $mrcore/Files/index/{1..22} | |
cd $mrcore | |
git clone git@github.com:dynatron/mrcore5 System | |
cd $mrcore/System | |
cp .env.example .env | |
rm -rf composer.lock | |
# Helper scripts | |
echo '/var/www/mrcore5/System/artisan "$@"' > /usr/local/bin/mrcore | |
echo 'echo "$@" | /var/www/mrcore5/System/artisan tinker' > /usr/local/bin/tinker | |
chmod a+x /usr/local/bin/* | |
fi | |
function setup { | |
base=$1; repo=$2; app=$3; branch=$4 | |
if [ ! -d "$base/$app" ]; then mkdir -p "$base/$app"; fi | |
cd $base | |
git clone git@github.com:$repo $app | |
cd $base/$app | |
git checkout $branch | |
composer install -d $base/$app | |
cd $base | |
} | |
# Setup Themes | |
base=$mrcore/Themes | |
setup $base mreschke/mrcore-themes-bootswatch Bootswatch master | |
setup $base dynatron/mrcore-themes-dynatron Dynatron develop | |
# Setup Modules | |
base=$mrcore/Modules | |
setup $base mreschke/mrcore-modules-auth Auth master | |
setup $base mreschke/mrcore-modules-foundation Foundation master | |
setup $base mreschke/mrcore-modules-wiki Wiki master | |
# Setup Mreschke Apps | |
base=$mrcore/Apps/Mreschke | |
setup $base mreschke/mreschke-dbal Dbal master | |
setup $base mreschke/mreschke-helpers Helpers master | |
setup $base mreschke/mreschke-mrcore4-legacy Mrcore4Legacy master | |
setup $base mreschke/mreschke-render Render master | |
setup $base mreschke/repository Repository develop | |
setup $base mreschke/keystone Keystone master | |
setup $base mreschke/api Api master | |
# Setup Dynatron Apps | |
base=$mrcore/Apps/Dynatron | |
setup $base dynatron/alerts Alerts develop | |
setup $base dynatron/api Api develop | |
setup $base dynatron/dashboard Dashboard develop | |
setup $base dynatron/alerts Alerts develop | |
setup $base dynatron/api Api develop | |
setup $base dynatron/dashboard Dashboard develop | |
setup $base dynatron/event Event develop | |
setup $base dynatron/foundation Foundation develop | |
setup $base dynatron/iam Iam develop | |
setup $base dynatron/lbstat Lbstat develop | |
setup $base dynatron/metric Metric develop | |
setup $base dynatron/product-menu ProductMenu develop | |
setup $base dynatron/sso Sso develop | |
setup $base dynatron/tools Tools develop | |
setup $base dynatron/vfi Vfi develop | |
setup $base dynatron/warehouse Warehouse develop | |
setup $base dynatron/website Website develop | |
echo "DONE! You have to manually edit composer.json, modules.php, .env and composer install the main system yourself" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment