Script Auto Install JVB

Hello, I want to create template instance on GPC so I can autscale JVB with template instance

This my custom script

echo 'deb stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - | apt-key add -
apt-get -y install apt-transport-https
apt -y update
apt -y upgrade

ufw status
ufw allow ssh
ufw allow 443/tcp
ufw allow 4443/tcp
ufw allow 10000:20000/udp
ufw enable

apt -y install jitsi-videobridge2

/etc/init.d/jitsi-videobridge2 start

But, when machine run command apt -y install jitsi-videobridge2 this got stuck on apt cause when I check it’s require input from user like image provide below

Any suggestion?

I have used “debconf-utils” and following piece of bash script right before line with installing videobridge:

apt-get --yes install debconf-utils
cat << EOF | debconf-set-selections
jitsi-videobridge jitsi-videobridge/jvb-hostname string YOUR_HOST_NAME

Thank’s its work