mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Clear MariaDB dir after package install.
This commit is contained in:
parent
5907f01ab8
commit
ef4c7b48a4
|
@ -15,6 +15,13 @@ apt-get update
|
||||||
|
|
||||||
apt-get install -q -y --no-install-recommends mariadb-server mariadb-backup
|
apt-get install -q -y --no-install-recommends mariadb-server mariadb-backup
|
||||||
|
|
||||||
|
rm -rf /var/lib/mysql
|
||||||
|
mkdir -p /var/lib/mysql /var/run/mysqld
|
||||||
|
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
|
||||||
|
|
||||||
|
# ensure that /var/run/mysqld (used for socket and lock files) is writable regardless of the UID our mysqld instance ends up having at runtime
|
||||||
|
chmod 777 /var/run/mysqld
|
||||||
|
|
||||||
# comment out a few problematic configuration values
|
# comment out a few problematic configuration values
|
||||||
find /etc/mysql/ -name '*.cnf' -print0 \
|
find /etc/mysql/ -name '*.cnf' -print0 \
|
||||||
| xargs -0 grep -lZE '^(bind-address|log|user\s)' \
|
| xargs -0 grep -lZE '^(bind-address|log|user\s)' \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user