diff --git a/installer/ga_postinstall_setup.sh b/installer/ga_postinstall_setup.sh index f0c7a48..28c734c 100755 --- a/installer/ga_postinstall_setup.sh +++ b/installer/ga_postinstall_setup.sh @@ -17,10 +17,48 @@ if [ $? != 0 ]; then exit 1 fi -cd .. +whiptail --msgbox "Installing packages" 7 23 +cd plugins/germanairlinesva/fleet +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install fleet packages" + exit 1 +fi +cd ../graphql +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install graphql packages" + exit 1 +fi +cd ../react +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install react packages" + exit 1 +fi +cd ../routes +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install routes packages" + exit 1 +fi +cd ../schooling +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install schooling packages" + exit 1 +fi +cd ../social +yarn install +if [ $? != 0 ]; then + echo -e "\033[0;31mCould not install social packages" + exit 1 +fi + +cd /var/www/ga whiptail --msgbox "Setting ownership" 7 21 -chown www-data -R . +chown www-data:www-data -R . if [ $? != 0 ]; then echo -e "\033[0;31mCould not set ownership to www-data" exit 1