Skip to content

Instantly share code, notes, and snippets.

@lector1982
Forked from Dmi3yy/evo.sh
Created March 18, 2021 03:21
Show Gist options
  • Select an option

  • Save lector1982/e0955dc55f46ce4e13bf8531363efb8a to your computer and use it in GitHub Desktop.

Select an option

Save lector1982/e0955dc55f46ce4e13bf8531363efb8a to your computer and use it in GitHub Desktop.
evo.sh
#!/bin/bash
# basic script, before use need change logins,passwords in this script
# put this script in project folder and run: sh evo.sh
#remove all files in root folder
rm -rf *
#download Evolution CMS files from GitHub
composer create-project evolutioncms/evolution:3.x-dev . --remove-vcs
#go to install folder and run cli-install
cd install/
php cli-install.php --typeInstall=1 --databaseType=mysql --databaseServer=localhost --database=DB --databaseUser=DBUSER --databasePassword=DBPASS --tablePrefix=DBPREFIX --cmsAdmin=USER --cmsAdminEmail=EMAIL --cmsPassword=PASS --language=en --removeInstall=y
#go to folder core
cd ../core/
#create main package and configure NameSpaces for controllers
php artisan package:create main
echo '<?php return "EvolutionCMS\\\\Main\\\\Controllers\\\\";' > custom/config/cms/settings/ControllerNamespace.php
#install TinyMCE5 plugin and turn on by Default
php artisan extras extras TinyMCE5 master
echo '<?php return "TinyMCE5";' > custom/config/cms/settings/which_editor.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment