25 lines
459 B
Bash
Executable File
25 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd /var/www
|
|
|
|
whiptail --msgbox "Fetching October" 7 20
|
|
composer create-project october/october ga
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not create project"
|
|
exit 1
|
|
fi
|
|
|
|
cd ga
|
|
|
|
whiptail --msgbox "Installing October" 7 22
|
|
php artisan october:install
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not install october"
|
|
exit 1
|
|
fi
|
|
php artisan october:migrate
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not run migration"
|
|
exit 1
|
|
fi
|