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.

Revisions

  1. @Dmi3yy Dmi3yy revised this gist Mar 11, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion evo.sh
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ cd ../core/

    #create main package and configure NameSpaces for controllers
    php artisan package:create $MAIN_PACKAGE_NAME
    echo '<?php return "EvolutionCMS\\\\$MAIN_PACKAGE_NAME\\\\Controllers\\\\";' > custom/config/cms/settings/ControllerNamespace.php
    echo '<?php return "EvolutionCMS\\$MAIN_PACKAGE_NAME\\Controllers\\";' > custom/config/cms/settings/ControllerNamespace.php

    #install TinyMCE5 plugin and turn on by Default
    php artisan extras extras TinyMCE5 master
  2. @Dmi3yy Dmi3yy revised this gist Mar 7, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion evo.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ REMOVE_INSTALL="y"
    MAIN_PACKAGE_NAME="main"

    #remove all files in root folder
    rm -rf *
    rm -rf {,.[!.],..?}*

    #download Evolution CMS files from GitHub
    composer create-project evolutioncms/evolution:$EVO_VERSION . --remove-vcs
  3. @Dmi3yy Dmi3yy revised this gist Feb 19, 2021. 1 changed file with 20 additions and 4 deletions.
    24 changes: 20 additions & 4 deletions evo.sh
    Original file line number Diff line number Diff line change
    @@ -2,22 +2,38 @@
    # basic script, before use need change logins,passwords in this script
    # put this script in project folder and run: sh evo.sh

    #variables
    EVO_VERSION="3.x-dev"
    INSTALL_TYPE=1
    DATABASE_TYPE="mysql"
    DATABASE_SERVER="localhost"
    DATABASE_NAME="DB"
    DATABASE_USER="USER"
    DATABASE_PASS="PASS"
    DATABASE_PREFIX="evo_"
    ADMIN_LOGIN="admin"
    ADMIN_EMAIL="emaill@gmail.com"
    ADMIN_PASS="pass"
    LANGUAGE="ru"
    REMOVE_INSTALL="y"
    MAIN_PACKAGE_NAME="main"

    #remove all files in root folder
    rm -rf *

    #download Evolution CMS files from GitHub
    composer create-project evolutioncms/evolution:3.x-dev . --remove-vcs
    composer create-project evolutioncms/evolution:$EVO_VERSION . --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
    php cli-install.php --typeInstall=$INSTALL_TYPE --databaseType=$DATABASE_TYPE --databaseServer=$DATABASE_SERVER --database=$DATABASE_NAME --databaseUser=$DATABASE_USER --databasePassword=$DATABASE_PASS --tablePrefix=$DATABASE_PREFIX --cmsAdmin=$ADMIN_LOGIN --cmsAdminEmail=$ADMIN_EMAIL --cmsPassword=$ADMIN_PASS --language=$LANGUAGE --removeInstall=$REMOVE_INSTALL

    #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
    php artisan package:create $MAIN_PACKAGE_NAME
    echo '<?php return "EvolutionCMS\\\\$MAIN_PACKAGE_NAME\\\\Controllers\\\\";' > custom/config/cms/settings/ControllerNamespace.php

    #install TinyMCE5 plugin and turn on by Default
    php artisan extras extras TinyMCE5 master
  4. @Dmi3yy Dmi3yy revised this gist Feb 19, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion evo.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/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
    @@ -9,7 +10,7 @@ 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=evo3_evo3 --databaseUser=evo3_evo3 --databasePassword=evo3_evo3 --tablePrefix=evo3_ --cmsAdmin=admin --cmsAdminEmail=dmi3yy@gmail.com --cmsPassword=123456 --language=en --removeInstall=y
    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/
  5. @Dmi3yy Dmi3yy created this gist Feb 19, 2021.
    23 changes: 23 additions & 0 deletions evo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    #!/bin/bash
    # 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=evo3_evo3 --databaseUser=evo3_evo3 --databasePassword=evo3_evo3 --tablePrefix=evo3_ --cmsAdmin=admin --cmsAdminEmail=dmi3yy@gmail.com --cmsPassword=123456 --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