Insatller REDIS_PREFIX
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
+7
-1
@@ -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
|
||||
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user