Skip to content

Commit

Permalink
Faster first startup of feature mariadb and fixing upgrading packages (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcheffels authored Mar 10, 2023
1 parent 5cc9510 commit 89f4316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/features/mariadb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ service apparmor stop
update-rc.d -f apparmor remove

# Remove MySQL
apt-get -o Dpkg::Options::="--force-confnew" remove -y --purge mysql-server mysql-client mysql-common
apt-get -o Dpkg::Options::="--force-confnew" remove -y --purge mysql-server mysql-client
apt-get autoremove -y
apt-get autoclean

Expand All @@ -43,7 +43,7 @@ mkdir /etc/mysql
touch /etc/mysql/debian.cnf

# Install MariaDB
apt-get install -y mariadb-server mariadb-client
apt-get -o Dpkg::Options::="--force-confnew" install -y mariadb-server mariadb-client mysql-common

# Configure Maria Remote Access and ignore db dirs
sed -i "s/bind-address = 127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mariadb.conf.d/50-server.cnf
Expand Down

0 comments on commit 89f4316

Please sign in to comment.