Skip to content

Commit 89f4316

Browse files
authored
Faster first startup of feature mariadb and fixing upgrading packages (#1866)
1 parent 5cc9510 commit 89f4316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/features/mariadb.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ service apparmor stop
2525
update-rc.d -f apparmor remove
2626

2727
# Remove MySQL
28-
apt-get -o Dpkg::Options::="--force-confnew" remove -y --purge mysql-server mysql-client mysql-common
28+
apt-get -o Dpkg::Options::="--force-confnew" remove -y --purge mysql-server mysql-client
2929
apt-get autoremove -y
3030
apt-get autoclean
3131

@@ -43,7 +43,7 @@ mkdir /etc/mysql
4343
touch /etc/mysql/debian.cnf
4444

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

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

0 commit comments

Comments
 (0)