From 7ed92d783b929c82cf25dcc1b1aad2c52ee32ac5 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 5 Oct 2020 03:45:01 -0500 Subject: [PATCH] Actually write sed changes --- add-jibri-node.sh | 4 ++-- quick_jibri_installer.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/add-jibri-node.sh b/add-jibri-node.sh index 7154183..f9afa86 100644 --- a/add-jibri-node.sh +++ b/add-jibri-node.sh @@ -99,9 +99,9 @@ check_var JB_NAME "$JB_NAME" check_var JB_AUTH_PASS "$JB_AUTH_PASS" check_var JB_REC_PASS "$JB_REC_PASS" -#Rename hostname for each jibri node +# Rename hostname for each jibri node hostnamectl set-hostname "jbnode${ADDUP}.${MAIN_SRV_DOMAIN}" -sed "1i ${PUBLIC_IP} jbnode${ADDUP}.${MAIN_SRV_DOMAIN}" /etc/hosts +sed -i "1i ${PUBLIC_IP} jbnode${ADDUP}.${MAIN_SRV_DOMAIN}" /etc/hosts # Jitsi-Meet Repo echo "Add Jitsi repo" diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 22bbb92..6e158c5 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -349,6 +349,10 @@ CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{p CERTBOT_REL_FILE="http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/$(lsb_release -sc)/Release" GC_SDK_REL_FILE="http://packages.cloud.google.com/apt/dists/cloud-sdk-$(lsb_release -sc)/Release" +# Rename hostname for jitsi server +#hostnamectl set-hostname "jibri.${DOMAIN}" +#sed -i "1i ${PUBLIC_IP} jibri.${DOMAIN}" /etc/hosts + #Sysadmin email while [[ -z $SYSADMIN_EMAIL ]] do