mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	Merge pull request #4156 from mattaezell/rflash_log_perms
Manage /var/log/xcat/rflash permissions
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user