bionic preparation
Test and preparation for Ubuntu 18.04 bionic beaver.
This commit is contained in:
parent
32d998643a
commit
e22f9fd8b4
|
@ -117,7 +117,10 @@ pre_install() {
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
if [[ $(conf_read pre-packs) != true ]]; then
|
if [[ $(conf_read pre-packs) != true ]]; then
|
||||||
# Check for missing essential packages
|
# Check for missing essential packages
|
||||||
sudo apt-get -y -qq install software-properties-common python-software-properties pwgen unzip
|
sudo apt-get -y -qq install software-properties-common
|
||||||
|
sudo apt-get -y -qq install python-software-properties
|
||||||
|
sudo apt-get -y -qq install pwgen
|
||||||
|
sudo apt-get -y -qq install unzip
|
||||||
conf_write pre-packs true
|
conf_write pre-packs true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -129,12 +132,13 @@ mysql_client_install() {
|
||||||
case "$osname" in
|
case "$osname" in
|
||||||
"trusty")
|
"trusty")
|
||||||
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"
|
||||||
;;
|
;;
|
||||||
"xenial"|"zesty"|"artful")
|
"xenial"|"zesty"|"artful")
|
||||||
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"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sudo add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mirrors.syringanetworks.net/mariadb/repo/10.2/ubuntu $osname main"
|
|
||||||
pre_install
|
pre_install
|
||||||
sudo apt-get -y install mariadb-client
|
sudo apt-get -y install mariadb-client
|
||||||
conf_write mysql-client true
|
conf_write mysql-client true
|
||||||
|
|
|
@ -438,6 +438,10 @@ swap_create() {
|
||||||
else
|
else
|
||||||
# Create SWAP Partition
|
# Create SWAP Partition
|
||||||
sudo dd if=/dev/zero of=/swapfile bs=${newswap}M count=1024
|
sudo dd if=/dev/zero of=/swapfile bs=${newswap}M count=1024
|
||||||
|
|
||||||
|
sudo chown root:root /swapfile
|
||||||
|
sudo chmod 0600 /swapfile
|
||||||
|
|
||||||
sudo mkswap /swapfile
|
sudo mkswap /swapfile
|
||||||
sudo swapon /swapfile
|
sudo swapon /swapfile
|
||||||
|
|
||||||
|
@ -446,9 +450,6 @@ swap_create() {
|
||||||
echo 10 | sudo tee /proc/sys/vm/swappiness
|
echo 10 | sudo tee /proc/sys/vm/swappiness
|
||||||
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
|
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
|
||||||
|
|
||||||
sudo chown root:root /swapfile
|
|
||||||
sudo chmod 0600 /swapfile
|
|
||||||
|
|
||||||
# Swap created by Webinoly - so we should remove it in uninstall
|
# Swap created by Webinoly - so we should remove it in uninstall
|
||||||
conf_write swap-owner webinoly
|
conf_write swap-owner webinoly
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue