2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-15 01:01:33 +00:00

Merge pull request #4156 from mattaezell/rflash_log_perms

Manage /var/log/xcat/rflash permissions
This commit is contained in:
chenglch
2017-10-23 22:08:19 -05:00
committed by GitHub

View File

@ -51,8 +51,10 @@ my $xcatdebugmode = 0;
my $IPMIXCAT = "/opt/xcat/bin/ipmitool-xcat";
my $NON_BLOCK = 1;
use constant RFLASH_LOG_DIR => "/var/log/xcat/rflash";
unless (-d RFLASH_LOG_DIR) {
mkpath(RFLASH_LOG_DIR);
if (-d RFLASH_LOG_DIR) {
chmod 0700, RFLASH_LOG_DIR;
} else {
mkpath(RFLASH_LOG_DIR, 0, 0700);
}
require xCAT::data::ibmhwtypes;