Insatller REDIS_PREFIX

This commit is contained in:
Your Name 2021-07-29 01:52:03 +02:00
parent bb30ac8e2b
commit 15659c3d28
7 changed files with 9 additions and 3 deletions

0
installer/ga_install.sh Normal file → Executable file
View File

0
installer/ga_install_prereq.sh Normal file → Executable file
View File

8
installer/ga_setup.sh Normal file → Executable file
View File

@ -6,11 +6,17 @@ cd /var/www/ga
whiptail --msgbox "Configuring broadcaster and lighthouse" 7 44
cp .env .env.bak
awk '/BROADCAST_DRIVER/{sub(/=.*/, "=redis"); print "LIGHTHOUSE_BROADCASTER=echo"; print "LIGHTHOUSE_CACHE_TTL=200"}{print $0}' .env > "$tmp" && mv "$tmp" .env
awk '/BROADCAST_DRIVER/{sub(/=.*/, "=redis"); print $0; print "LIGHTHOUSE_BROADCASTER=echo"; print "LIGHTHOUSE_CACHE_TTL=200"; next}{print $0}' .env > "$tmp" && mv "$tmp" .env
if [ $? != 0 ]; then
echo -e "\033[0;31mCould not set GermanAirlines specific env variables"
exit 1
fi
awk '/REDIS_PORT=*/{print $0; print "REDIS_PREFIX="; next}{print $0}' .env > "$tmp" && mv "$tmp" .env
if [ $? != 0 ]; then
echo -e "\033[0;31mCould not set GermanAirlines specific env variables"
exit 1
fi
cd config

4
installer/install.sh Normal file → Executable file
View File

@ -1,8 +1,8 @@
#!/bin/bash
if [ "$(id -u)" != 0 ]; then
echo -e "\033[0;31mThis script must be run with root privileges"
exit 1
echo -e "\033[0;31mThis script must be run with root privileges"
exit 1
fi
./october_install_prereq.sh

0
installer/laravel-echo-server-install.sh Normal file → Executable file
View File

0
installer/october_install_prereq.sh Normal file → Executable file
View File

0
installer/october_setup.sh Normal file → Executable file
View File