Env Adjustemnts befor install due to artisan erroring out

This commit is contained in:
Kilian 2021-07-30 20:30:18 +02:00
parent 0c2a3380d7
commit 4b8d5a7c10
3 changed files with 32 additions and 26 deletions

View 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

View File

@ -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

View File

@ -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