ubuntu bionic support
Added support for Ubuntu 18.04 bionic beaver.
This commit is contained in:
parent
c37f8742b7
commit
07d109a7b5
|
@ -102,7 +102,7 @@ db_delete() {
|
||||||
check_osname() {
|
check_osname() {
|
||||||
local distr=`echo $(lsb_release -i | cut -d':' -f 2)`
|
local distr=`echo $(lsb_release -i | cut -d':' -f 2)`
|
||||||
local osver=`echo $(lsb_release -c | cut -d':' -f 2)`
|
local osver=`echo $(lsb_release -c | cut -d':' -f 2)`
|
||||||
if ! [[ $distr == "Ubuntu" && $osver =~ ^(trusty|xenial|zesty|artful)$ ]]; then
|
if ! [[ $distr == "Ubuntu" && $osver =~ ^(trusty|xenial|zesty|artful|bionic)$ ]]; then
|
||||||
echo "${red}" >&2
|
echo "${red}" >&2
|
||||||
echo "****************************************************************************" >&2
|
echo "****************************************************************************" >&2
|
||||||
echo "**** This OS is not supported by Webinoly and could not work properly ****" >&2
|
echo "**** This OS is not supported by Webinoly and could not work properly ****" >&2
|
||||||
|
@ -134,7 +134,7 @@ mysql_client_install() {
|
||||||
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
||||||
sudo add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.2/ubuntu $osname main"
|
sudo add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.2/ubuntu $osname main"
|
||||||
;;
|
;;
|
||||||
"xenial"|"zesty"|"artful")
|
"xenial"|"zesty"|"artful"|"bionic")
|
||||||
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
|
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
|
||||||
sudo add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.2/ubuntu $osname main"
|
sudo add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.2/ubuntu $osname main"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -196,8 +196,10 @@ elif [[ $arg == "-purge" && $opt == "-mysql" ]]; then
|
||||||
conf_delete delautopma
|
conf_delete delautopma
|
||||||
fi
|
fi
|
||||||
sudo service mysql stop
|
sudo service mysql stop
|
||||||
sudo apt-get -y purge mariadb-server mariadb-common mysql-common debconf-utils
|
echo "mariadb-server-10.2 mariadb-server-10.2/postrm_remove_databases boolean true" | debconf-set-selections
|
||||||
|
sudo apt-get -y purge mariadb-server mariadb-common mysql-common
|
||||||
sudo apt-get -y purge mariadb-client
|
sudo apt-get -y purge mariadb-client
|
||||||
|
sudo apt-get -y purge debconf-utils
|
||||||
sudo apt-get -y autoremove
|
sudo apt-get -y autoremove
|
||||||
|
|
||||||
os_name=$(check_osname)
|
os_name=$(check_osname)
|
||||||
|
@ -207,7 +209,7 @@ elif [[ $arg == "-purge" && $opt == "-mysql" ]]; then
|
||||||
"trusty")
|
"trusty")
|
||||||
sudo apt-key del 0xcbcb082a1bb943db
|
sudo apt-key del 0xcbcb082a1bb943db
|
||||||
;;
|
;;
|
||||||
"xenial"|"zesty"|"artful")
|
"xenial"|"zesty"|"artful"|"bionic")
|
||||||
sudo apt-key del 0xF1656F24C74CD1D8
|
sudo apt-key del 0xF1656F24C74CD1D8
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
4
weby
4
weby
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Webinoly Installation Script.
|
# Webinoly Installation Script.
|
||||||
webyversion="1.4.2-beta"
|
webyversion="1.4.2"
|
||||||
|
|
||||||
|
|
||||||
# Check OS support
|
# Check OS support
|
||||||
distr=`echo $(lsb_release -i | cut -d':' -f 2)`
|
distr=`echo $(lsb_release -i | cut -d':' -f 2)`
|
||||||
osver=`echo $(lsb_release -c | cut -d':' -f 2)`
|
osver=`echo $(lsb_release -c | cut -d':' -f 2)`
|
||||||
if ! [[ $distr == "Ubuntu" && $osver =~ ^(xenial)$ ]]; then
|
if ! [[ $distr == "Ubuntu" && $osver =~ ^(xenial|bionic)$ ]]; then
|
||||||
echo "$(tput setaf 1)"
|
echo "$(tput setaf 1)"
|
||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
echo "**** This OS is not supported by Webinoly and could not work properly ****"
|
echo "**** This OS is not supported by Webinoly and could not work properly ****"
|
||||||
|
|
Loading…
Reference in a new issue