Commit fa9349d8 authored by Robert Ricci's avatar Robert Ricci
Browse files

Fix a bug that was putting the wrong ownership on the mysql log


Also, the mode argument to mkdir is subject to the user's umask, so
do an explicit chmod to the right perms anyway.
parent 76ac2193
......@@ -313,13 +313,15 @@ Phase "syslog", "Setting up syslog", sub {
mkdir $LOGDIR, 0775 or PhaseFail("Unable to create $LOGDIR : $!");
ExecQuietFatal("$CHGRP tbadmin $LOGDIR");
ExecQuietFatal("$CHMOD 775 $LOGDIR");
Phase "logdir", "Creating mysql log directory", sub {
mkdir $MYSQL_LOGDIR, 0775 or
PhaseFail("Unable to create $MYSQL_LOGDIR : $!");
ExecQuietFatal("$CHOWN mysql:mysql $LOGDIR");
ExecQuietFatal("$CHOWN mysql:mysql $MYSQL_LOGDIR");
ExecQuietFatal("$CHMOD 775 $MYSQL_LOGDIR");
Phase "logfiles", "Creating log files", sub {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment