limit installer to Debian 12 only
This commit is contained in:
parent
51211415b2
commit
c741e26dab
11
install.sh
11
install.sh
|
@ -5,10 +5,11 @@ if [ "${EUID}" -ne 0 ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for Ubuntu 22.04 (jammy) or Debian 12 (bookworm)
|
# check for Debian 12 (bookworm)
|
||||||
os_codename=`lsb_release -cs`
|
os_id=`lsb_release -is`
|
||||||
if [ $os_codename != jammy ] && [ $os_codename != bookworm ]; then
|
os_release=`lsb_release -rs`
|
||||||
echo "This installer only runs on Ubuntu 22.04 (jammy) or Debian 12 (Bookworm), bailing out."
|
if [ $os_id != Debian ] || [ $os_release != 12 ]; then
|
||||||
|
echo "This installer only runs on Debian 12 (Bookworm), bailing out."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ if [ -f "/usr/local/bin/vhost.sh" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for existing Let's Encrypt install
|
# check for existing web server software installs
|
||||||
if [ -d "/etc/apache2/" ] || [ -d "/etc/php/" ] || [ -d "/etc/varnish/" ]; then
|
if [ -d "/etc/apache2/" ] || [ -d "/etc/php/" ] || [ -d "/etc/varnish/" ]; then
|
||||||
echo
|
echo
|
||||||
echo "WARNING: Apache, Varnish and/or PHP are already installed."
|
echo "WARNING: Apache, Varnish and/or PHP are already installed."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user