Skip to content

Commit

Permalink
Fixing ezinstall.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocamposviana committed Dec 18, 2013
1 parent 50368f5 commit 01dca28
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions SetupFiles/ezinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,31 @@ cd ${sitedir}

mkdir src/Tutei
###### use a branch
#git clone -b improve_installer https://github.com/thiagocamposviana/TuteiBaseBundle.git src/Tutei/BaseBundle
#git clone -b 1.x https://github.com/thiagocamposviana/TuteiBaseBundle.git src/Tutei/BaseBundle
#cd src/Tutei/BaseBundle
#git stash
#git checkout improve_installer
#git checkout 1.x
#cd ../../..

git clone https://github.com/thiagocamposviana/TuteiBaseBundle.git src/Tutei/BaseBundle

rm -Rf ezpublish/cache/*

cd ezpublish_legacy

mysql -u ${dbuser} -p${dbpass} -e "CREATE DATABASE ${dbname} CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
mysql -u ${dbuser} -p${dbpass} -e "CREATE USER '${dbname}'@'localhost' IDENTIFIED BY '${dbname}';"
mysql -u ${dbuser} -p${dbpass} -e "GRANT ALL PRIVILEGES ON ${dbname}.* TO '${dbname}'@'localhost' WITH GRANT OPTION;"

mysql -u ${dbuser} -p${dbpass} ${dbname} < kernel/sql/mysql/kernel_schema.sql

mysql -u ${dbuser} -p${dbpass} ${dbname} < kernel/sql/common/cleandata.sql

cd ..




cp -r src/Tutei/BaseBundle/SetupFiles SetupFiles

find SetupFiles -name "*.*" -exec sed -i "s/\[SITEURL\]/${sitedir}/g" {} \;
Expand Down Expand Up @@ -122,14 +137,6 @@ cd ezpublish_legacy

php bin/php/ezpgenerateautoloads.php

mysql -u ${dbuser} -p${dbpass} -e "CREATE DATABASE ${dbname} CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
mysql -u ${dbuser} -p${dbpass} -e "CREATE USER '${dbname}'@'localhost' IDENTIFIED BY '${dbname}';"
mysql -u ${dbuser} -p${dbpass} -e "GRANT ALL PRIVILEGES ON ${dbname}.* TO '${dbname}'@'localhost' WITH GRANT OPTION;"

mysql -u ${dbuser} -p${dbpass} ${dbname} < kernel/sql/mysql/kernel_schema.sql

mysql -u ${dbuser} -p${dbpass} ${dbname} < kernel/sql/common/cleandata.sql


sudo -u ${apachegroup} php ezpm.php -s site import ../src/Tutei/BaseBundle/SetupFiles/content_files/classes.ezpkg

Expand Down Expand Up @@ -249,8 +256,8 @@ ServerName ${sitedir}\n
# Additional Assetic rules for eZ Publish 5.1 / 2013.4 and higher.\n
## Don't forget to run php ezpublish/console assetic:dump --env=prod\n
## and make sure to comment these out in dev environment.\n
RewriteRule ^/css/.*\.css - [L]\n
RewriteRule ^/js/.*\.js - [L]\n
#RewriteRule ^/css/.*\.css - [L]\n
#RewriteRule ^/js/.*\.js - [L]\n
\n
RewriteRule .* /index.php\n
</IfModule>\n
Expand Down

0 comments on commit 01dca28

Please sign in to comment.