feat: add support for Ubuntu Focal 20.04 (#1168)

Co-authored-by: Valerio Bozzolan <gnu@linux.it>
This commit is contained in:
Kyle Robbertze 2021-11-04 07:55:50 +00:00 committed by GitHub
parent 3d20af5fae
commit 7182390000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 73 additions and 41 deletions

15
install
View file

@ -648,6 +648,7 @@ fi
is_debian_dist=false
is_debian_buster=false
is_ubuntu_dist=false
is_ubuntu_focal=false
is_ubuntu_bionic=false
is_centos_dist=false
# shellcheck disable=SC2034
@ -659,6 +660,11 @@ code="${code:-$VERSION_ID}"
code="${code,,}"
verbose "Validating dist-code: ${dist}-${code}"
case "${dist}-${code}" in
ubuntu-20.04)
code="focal"
is_ubuntu_dist=true
is_ubuntu_focal=true
;;
ubuntu-18.04)
code="bionic"
is_ubuntu_dist=true
@ -1075,6 +1081,7 @@ loud " * Configuring PHP in Apache * "
loud "-----------------------------------------------------"
# Test common locations for php conf directory
php_conf_dirs=(
"/etc/php/7.4/apache2/conf.d" # Ubuntu Focal
"/etc/php/7.3/apache2/conf.d" # Debian Buster
"/etc/php/7.2/apache2/conf.d" # Ubuntu Bionic
"/etc/php/7.0/apache2/conf.d" # Ubuntu Xenial
@ -1099,7 +1106,9 @@ else
fi
# Enable Apache modules
if $is_debian_buster; then
if $is_ubuntu_focal; then
loudCmd "a2enmod rewrite php7.4 proxy proxy_http"
elif $is_debian_buster; then
loudCmd "a2enmod rewrite php7.3 proxy proxy_http"
elif $is_ubuntu_bionic; then
loudCmd "a2enmod rewrite php7.2 proxy proxy_http"
@ -1260,7 +1269,7 @@ verbose "...Done"
echo -e "\n-----------------------------------------------------"
echo " * Basic Setup DONE! * "
echo " "
echo " To get started with Libretime, visit ${IP} "
echo " To get started with Libretime, visit ${IP} "
echo " or, if you've set up your own web configuration, "
echo " the Libretime webroot on your webserver "
echo " the Libretime webroot on your webserver "
echo "-----------------------------------------------------"