Major rework, comply with shellcheck #80

Merged
Ark74 merged 28 commits from unstable into master 2022-05-21 01:07:03 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit e801fdd6ba - Show all commits

View File

@ -482,11 +482,11 @@ do
printf "> Set %s as a fqdn hostname?: (yes or no)\n" "$DOMAIN" && \
read -p "Leave empty to default to your current one ($(hostname -f)):$NL" -r FQDN_HOST
if [ "$FQDN_HOST" = "yes" ]; then
printf " - $DOMAIN will be used as fqdn hostname, changes will show on reboot.\n\n"
printf " - %s will be used as fqdn hostname, changes will show on reboot.\n\n" "$DOMAIN"
hostnamectl set-hostname "${DOMAIN}"
sed -i "1i ${PUBLIC_IP} ${DOMAIN}" /etc/hosts
else
printf " - $(hostname -f) will be keep.\n\n"
printf " - %s will be keep.\n\n" "$(hostname -f)"
fi
done
sleep .1
@ -600,7 +600,7 @@ do
JIBRI_RES="1080"
break
;;
*) printf "\nInvalid option «$REPLY», choose 1 or 2\n\n"
*) printf "\nInvalid option «%s», choose 1 or 2\n\n" "$REPLY"
;;
esac
done
@ -798,7 +798,7 @@ prosodyctl register recorder recorder."$DOMAIN" "$JB_REC_PASS"
cat << BREWERY >> "$JICOFO_SIP"
#org.jitsi.jicofo.auth.URL=XMPP:$DOMAIN
#org.jitsi.jicofo.auth.URL=EXT_JWT:$DOMAIN
org.jitsi.jicofo.jibri.BREWERY="$JibriBrewery"@internal.auth."$DOMAIN"
org.jitsi.jicofo.jibri.BREWERY=$JibriBrewery@internal.auth.$DOMAIN
org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90
#org.jitsi.jicofo.auth.DISABLE_AUTOLOGIN=true
BREWERY