Update setup.sh
This commit is contained in:
parent
4fb7e85f61
commit
05f4db10f2
8
setup.sh
8
setup.sh
|
@ -48,7 +48,7 @@ case ${answer:0:1} in
|
||||||
${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
|
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 any key to continue"
|
read -p "Press enter to continue"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo -e Webmin "${BOLDRED} NOT${ENDCOLOR}" installed
|
echo -e Webmin "${BOLDRED} NOT${ENDCOLOR}" installed
|
||||||
|
@ -61,13 +61,13 @@ case ${answer:0:1} in
|
||||||
cd "Pi-hole/automated install/"
|
cd "Pi-hole/automated install/"
|
||||||
bash basic-install.sh
|
bash basic-install.sh
|
||||||
pihole -a -p
|
pihole -a -p
|
||||||
read -p "Press any key to continue"
|
read -p "Press enter to continue"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo -e PiHole "${BOLDRED} NOT${ENDCOLOR} " installed
|
echo -e PiHole "${BOLDRED} NOT${ENDCOLOR} " installed
|
||||||
;;
|
;;
|
||||||
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
|
||||||
|
@ -79,7 +79,7 @@ if [[ $WEBMIN != 0 ]]
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user