set default option for HSTS version
This commit is contained in:
parent
383ad96978
commit
a6ac1bfd4d
|
@ -132,9 +132,10 @@ sleep .1
|
||||||
#Enable HSTS
|
#Enable HSTS
|
||||||
while [ "$ENABLE_HSTS" != "yes" ] && [ "$ENABLE_HSTS" != "no" ]
|
while [ "$ENABLE_HSTS" != "yes" ] && [ "$ENABLE_HSTS" != "no" ]
|
||||||
do
|
do
|
||||||
read -p "> Do you want to enable HSTS for this domain?: (yes or no)
|
read -p "> Do you want to enable HSTS for this domain? (yes or no) [default: no]:
|
||||||
Be aware this option apply mid-term effects on the domain, choose \"no\"
|
Be aware this option apply mid-term effects on the domain, choose \"no\" or leave empty
|
||||||
in case you don't know what you are doing. More at https://hstspreload.org/$NL" -r ENABLE_HSTS
|
in case you don't know what you are doing. More at https://hstspreload.org/$NL" -r ENABLE_HSTS
|
||||||
|
ENABLE_HSTS=${ENABLE_HSTS:-no}
|
||||||
if [ "$ENABLE_HSTS" = "no" ]; then
|
if [ "$ENABLE_HSTS" = "no" ]; then
|
||||||
echo " - HSTS won't be enabled."
|
echo " - HSTS won't be enabled."
|
||||||
elif [ "$ENABLE_HSTS" = "yes" ]; then
|
elif [ "$ENABLE_HSTS" = "yes" ]; then
|
||||||
|
@ -163,7 +164,7 @@ if [ "$(dpkg-query -W -f='${Status}' jibri 2>/dev/null | grep -c "ok installed")
|
||||||
echo "jitsi meet/jibri is installed, checking version:"
|
echo "jitsi meet/jibri is installed, checking version:"
|
||||||
apt-show-versions jibri
|
apt-show-versions jibri
|
||||||
else
|
else
|
||||||
echo "Wait!, jitsi-meet/jibri is not installed on this system using apt, exiting..."
|
echo "Wait!, jitsi-meet/jibri is not installed on this system via apt, exiting..."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue