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