Commit 4e2ec868 authored by Robert Ricci's avatar Robert Ricci
Browse files

Change permissions on log directory, and create the mysql log

directory, so that mysql can write its logs.
parent 4c56daf6
......@@ -83,6 +83,7 @@ my $SSH_CONFIG = "/etc/ssh/ssh_config";
# Some directories we care about
#
my $LOGDIR = "$PREFIX/log";
my $MYSQL_LOGDIR = "$LOGDIR/mysql";
my $RCDIR = "/usr/local/etc/rc.d";
my $USERSVAR_DIR = "$PREFIX/usersvar";
my $PORTSDIR = "/usr/ports/misc";
......@@ -389,10 +390,16 @@ Phase "syslog", "Setting up syslog", sub {
Phase "logdir", "Creating log directory", sub {
DoneIfExists($LOGDIR);
mkdir $LOGDIR, 0770 or PhaseFail("Unable to create $LOGDIR : $!");
mkdir $LOGDIR, 0775 or PhaseFail("Unable to create $LOGDIR : $!");
ExecQuietFatal("$CHGRP tbadmin $LOGDIR");
};
Phase "logdir", "Creating mysql log directory", sub {
DoneIfExists($MYSQL_LOGDIR);
mkdir $LOGDIR, 0775 or PhaseFail("Unable to create $MYSQL_LOGDIR : $!");
ExecQuietFatal("$CHGRP mysql:mysql $LOGDIR");
};
Phase "logfiles", "Creating log files", sub {
foreach my $logfile (@LOGFILES) {
Phase $logfile, $logfile, 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