2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-02 02:45:35 +00:00

Manage /var/log/xcat/rflash permissions

This commit is contained in:
Matt Ezell
2017-10-23 15:17:07 -04:00
parent 6d345ab62d
commit 628df6c47c

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;