mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
fix issue copycds issues when using -p path option #2630
This commit is contained in:
parent
fa1231e1ab
commit
3acbdf064b
@ -145,8 +145,11 @@ sub process_request {
|
||||
|
||||
if ($path)
|
||||
{
|
||||
$path=Cwd::realpath($path);
|
||||
unless(substr($path,0,length("/install")) eq "/install"){
|
||||
|
||||
if(-e $path) {
|
||||
$path=Cwd::realpath($path);
|
||||
}
|
||||
unless((substr($path,0,length("/install/")) eq "/install/") or ($path eq "/install")){
|
||||
$callback->({ warning => "copycds: the specified path \"$path\" is not a subdirectory under /install. Make sure this path is configured for httpd/apache, otherwise, the provisioning with this iso will fail!" });
|
||||
}
|
||||
push @{ $newreq->{arg} }, ("-p", $path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user