]> Untitled Git - lemmy.git/commitdiff
use hosts file
authorFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 17:22:16 +0000 (18:22 +0100)
committerFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 17:22:16 +0000 (18:22 +0100)
api_tests/prepare-drone-federation-test.sh

index 769fb3867dcc3733fe0a959e217e0c9428aed9fd..5ca1407fc07666f2a2a756da59d0ecd7aebb10d4 100755 (executable)
@@ -15,6 +15,10 @@ for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do
   psql "$LEMMY_DATABASE_URL" -c "CREATE DATABASE $INSTANCE"
 done
 
+for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do
+  echo "127.0.0.1 $INSTANCE" >> /etc/hosts
+done
+
 echo "start alpha"
 LEMMY_HOSTNAME=lemmy-alpha:8541 \
   LEMMY_PORT=8541 \