Update setup.sh

This commit is contained in:
borekon 2022-03-14 14:03:16 +01:00
parent 05f4db10f2
commit 80d9a9e5f5

View File

@ -46,7 +46,7 @@ case ${answer:0:1} in
wget https://download.webmin.com/jcameron-key.asc
${SUDO} sudo gpg --dearmor jcameron-key.asc
${SUDO} sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys d97a3ae911f63c51
rm jcameron-key.asc
${SUDO} rm jcameron-key.asc
${SUDO} apt update && ${SUDO} apt install webmin && WEBMIN=1
read -p "Press enter to continue"
;;
@ -68,7 +68,7 @@ case ${answer:0:1} in
;;
esac
if [ $WEBMIN != 0 ]
then
then
echo -e "${ITALICGREEN}Stopping Webmin${ENDCOLOR}"
${SUDO} systemctl stop webmin
${SUDO} certbot certonly --standalone
@ -76,11 +76,11 @@ if [ $WEBMIN != 0 ]
rm /etc/webmin/miniserv.pem
${SUDO} ln -s /etc/letsencrypt/live/$HOSTNAME/combined.pem /etc/webmin/miniserv.pem
${SUDO} systemctl start webmin
else
else
#echo No
fi
if [ -d "/etc/lighttpd" ]
then
then
read -p "Request let's encrypt certificate for lighttpd(y/n)" answer
case ${answer:0:1} in
y|Y )
@ -108,6 +108,6 @@ if [ -d "/etc/lighttpd" ]
echo -e SSL certificate was "${BOLDRED}NOT${ENDCOLOR}" installed
;;
esac
else
else
#echo No
fi