Add a softlink for /var/log/mysql
This will allow logrotate of mysql logs to work as /etc/logrotate.d/mysql-server uses /var/log/mysql Change-Id: Iaf6c27b5d58ccc4e89cf47a5b6f27853f78ff714
This commit is contained in:
parent
54eafe8d89
commit
584ed2415b
|
@ -49,7 +49,7 @@ register-state-path /var/lib/mysql
|
||||||
# We need to setup the directory with appropriate permissions and then
|
# We need to setup the directory with appropriate permissions and then
|
||||||
# the first time we boot a particular state partition we rsync this in.
|
# the first time we boot a particular state partition we rsync this in.
|
||||||
[ -d /var/log/mysql ] || install -d -o root -g mysql -m 0775 /var/log/mysql
|
[ -d /var/log/mysql ] || install -d -o root -g mysql -m 0775 /var/log/mysql
|
||||||
register-state-path /var/log/mysql
|
register-state-path --leave-symlink /var/log/mysql
|
||||||
|
|
||||||
DISTRO=`lsb_release -si` || true
|
DISTRO=`lsb_release -si` || true
|
||||||
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
|
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue