Updated install.sh
This commit is contained in:
@ -83,13 +83,13 @@ if [[ -e /etc/os-release ]]; then
|
||||
|
||||
if [[ $INSTALL_DATABASE -eq 1 ]]; then
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server python-mysqldb
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server python3-mysqldb
|
||||
# HSFD changes for Ubuntu 18.04
|
||||
sudo sed -i -e "/bind-address/d" /etc/mysql/mysql.conf.d/mysqld.cnf
|
||||
#sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
|
||||
sudo service mysql restart
|
||||
elif [[ $ID = 'fedora' ]]; then
|
||||
sudo dnf install -y mariadb-server python-mysql
|
||||
sudo dnf install -y mariadb-server python3-mysql
|
||||
printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf
|
||||
sudo systemctl enable mariadb
|
||||
sudo systemctl start mariadb
|
||||
@ -117,7 +117,7 @@ if [[ -e /etc/os-release ]]; then
|
||||
|
||||
if [[ $INSTALL_FAAFO -eq 1 ]]; then
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo apt-get install -y python-dev python-pip supervisor git zlib1g-dev libmysqlclient-dev python-mysqldb
|
||||
sudo apt-get install -y python3-dev python3-pip supervisor git zlib1g-dev libmysqlclient-dev python3-mysqldb
|
||||
# Following is needed because of
|
||||
# https://bugs.launchpad.net/ubuntu/+source/supervisor/+bug/1594740
|
||||
if [ $(lsb_release --short --codename) = xenial ]; then
|
||||
@ -131,7 +131,7 @@ if [[ -e /etc/os-release ]]; then
|
||||
fi
|
||||
fi
|
||||
elif [[ $ID = 'fedora' ]]; then
|
||||
sudo dnf install -y python-devel python-pip supervisor git zlib-devel mariadb-devel gcc which python-mysql
|
||||
sudo dnf install -y python3-devel python3-pip supervisor git zlib-devel mariadb-devel gcc which python3-mysql
|
||||
sudo systemctl enable supervisord
|
||||
sudo systemctl start supervisord
|
||||
#elif [[ $ID = 'opensuse' || $ID = 'sles' ]]; then
|
||||
|
Reference in New Issue
Block a user