add Debian 12 compat, enhance letsencrypt detection
This commit is contained in:
parent
9a7f451da9
commit
ca64b8ab16
18
install.sh
18
install.sh
|
@ -11,12 +11,18 @@ if [ "${EUID}" -ne 0 ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for existing Let's Encrypt install
|
# check for Ubuntu 22.04 (jammy) or Debian 12 (bookworm)
|
||||||
if [ -d "/etc/letsencrypt/" ]; then
|
os_codename=`lsb_release -cs`
|
||||||
echo "WARNING: Let's Encrypt is already installed."
|
if [ $os_codename != jammy ] && [ $os_codename != bookworm ]; then
|
||||||
echo "This installer will overwrite existing configurations."
|
echo "This installer only runs on Ubuntu 22.04 (jammy) or Debian 12 (Bookworm), bailing out."
|
||||||
echo -e "You have five seconds to execute ctrl-c to cancel this install.\a"
|
exit 1
|
||||||
sleep 5
|
fi
|
||||||
|
|
||||||
|
# check for existing web server software installs
|
||||||
|
if [ -d "/etc/letsencrypt/" ] || [ -d "/opt/certbot/" ] || [ -f "/usr/bin/certbot" ]; then
|
||||||
|
echo "NOTICE: Let's Encrypt is already installed."
|
||||||
|
echo "You must purge any existing certbot installs before running this."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Old apt installation instructions
|
# Old apt installation instructions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user