Working : Fix script reset
This commit is contained in:
@@ -4,12 +4,8 @@
|
|||||||
|
|
||||||
echo -e "\033[47m\033[1;31m\n[WARN] This script will reset this Thelia2 install\n\033[0m"
|
echo -e "\033[47m\033[1;31m\n[WARN] This script will reset this Thelia2 install\n\033[0m"
|
||||||
|
|
||||||
if [ ! -f local/config/database.yml ]; then
|
|
||||||
cp local/config/database.yml.sample local/config/database.yml
|
|
||||||
echo "[FAILED] Please add your database informations in local/config/database.yml and start this script again."
|
|
||||||
else
|
|
||||||
echo -e "\n\e[01;34m[INFO] Downloading vendors\e[00m\n"
|
echo -e "\n\e[01;34m[INFO] Downloading vendors\e[00m\n"
|
||||||
composer install
|
composer install --prefer-dist
|
||||||
|
|
||||||
cd local/config/
|
cd local/config/
|
||||||
|
|
||||||
@@ -26,7 +22,7 @@ else
|
|||||||
# install/insert.sql
|
# install/insert.sql
|
||||||
echo -e "\n\e[01;34m[INFO] Reinstalling Thelia2\e[00m\n"
|
echo -e "\n\e[01;34m[INFO] Reinstalling Thelia2\e[00m\n"
|
||||||
cd ../..
|
cd ../..
|
||||||
php Thelia thelia:install
|
php Thelia thelia:install --db_host localhost --db_username thelia2 --db_password thelia2 --db_name thelia2
|
||||||
|
|
||||||
echo -e "\n\e[01;34m[INFO] Installing fixtures\e[00m\n"
|
echo -e "\n\e[01;34m[INFO] Installing fixtures\e[00m\n"
|
||||||
php install/faker.php
|
php install/faker.php
|
||||||
@@ -35,4 +31,3 @@ else
|
|||||||
php Thelia thelia:create-admin
|
php Thelia thelia:create-admin
|
||||||
|
|
||||||
echo -e "\n\e[00;32m[SUCCESS] Reset done\e[00m\n"
|
echo -e "\n\e[00;32m[SUCCESS] Reset done\e[00m\n"
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user