Env Adjustemnts befor install due to artisan erroring out
This commit is contained in:
parent
0c2a3380d7
commit
4b8d5a7c10
27
installer/ga_postinstall_setup.sh
Executable file
27
installer/ga_postinstall_setup.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
tmp=$(mktemp)
|
||||
|
||||
cd /var/www/ga
|
||||
|
||||
whiptail --msgbox "Linking graphs directory" 7 28
|
||||
mkdir graphql
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not add graphql directory"
|
||||
exit 1
|
||||
fi
|
||||
cd graphql
|
||||
ln -s ../plugins/germanairlinesva/graphql/graphs
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not link graphs directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
whiptail --msgbox "Setting ownership" 7 21
|
||||
chown www-data -R .
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not set ownership to www-data"
|
||||
exit 1
|
||||
fi
|
||||
@ -17,7 +17,6 @@ if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
cd config
|
||||
|
||||
whiptail --msgbox "Adding BROADCAST_DRIVER env" 7 31
|
||||
@ -27,27 +26,3 @@ if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not patch broadcasting config"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
whiptail --msgbox "Linking graphs directory" 7 28
|
||||
mkdir graphql
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not add graphql directory"
|
||||
exit 1
|
||||
fi
|
||||
cd graphql
|
||||
ln -s ../plugins/germanairlinesva/graphql/graphs
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not link graphs directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
whiptail --msgbox "Setting ownership" 7 21
|
||||
chown www-data -R .
|
||||
if [ $? != 0 ]; then
|
||||
echo -e "\033[0;31mCould not set ownership to www-data"
|
||||
exit 1
|
||||
fi
|
||||
@ -26,11 +26,15 @@ fi
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
./ga_preinstall_setup.sh
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
./ga_install.sh
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
./ga_setup.sh
|
||||
./ga_postinstall_setup.sh
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user