mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Update VMs to use my_mkdir
This commit is contained in:
@@ -1717,10 +1717,10 @@ private static $encoding = 'UTF-8';
|
||||
|
||||
if ($storage == "default") $clonedir = $domain_cfg['DOMAINDIR'].$clone ; else $clonedir = str_replace('/mnt/user/', "/mnt/$storage/", $domain_cfg['DOMAINDIR']).$clone;
|
||||
if (!is_dir($clonedir)) {
|
||||
mkdir($clonedir,0777,true);
|
||||
#my_mkdir($clonedir,0777,true);
|
||||
chown($clonedir, 'nobody');
|
||||
chgrp($clonedir, 'users');
|
||||
#mkdir($clonedir,0777,true);
|
||||
my_mkdir($clonedir,0777,true);
|
||||
#chown($clonedir, 'nobody');
|
||||
#chgrp($clonedir, 'users');
|
||||
}
|
||||
write("addLog\0".htmlspecialchars("Checking for image files"));
|
||||
if ($file_exists && $overwrite != "yes") { write("addLog\0".htmlspecialchars(_("New image file names exist and Overwrite is not allowed"))); return( false) ; }
|
||||
|
||||
Reference in New Issue
Block a user