added separate logging

This commit is contained in:
2025-11-01 12:37:33 +00:00
parent 1f6856d43d
commit e227d7f950

View File

@@ -115,6 +115,8 @@ apt install -y mariadb-server mariadb-client
# #
# Setting up error log comment this out if you don't need error log # Setting up error log comment this out if you don't need error log
# #
logdir="/var/log/mysql"
if [[ ! -d "$logdir" ]]; then mkdir -m 2750 "$logdir" ; chown mysql:mysql "$logdir" ; fi
sed -i '/#log_error = \/var\/log\/mysql\/error.log/ s/^.//' "$mariaconfig" sed -i '/#log_error = \/var\/log\/mysql\/error.log/ s/^.//' "$mariaconfig"
# #