mirror of
https://github.com/unraid/webgui.git
synced 2026-01-09 19:20:06 -06:00
Fir directory permissions.
This commit is contained in:
@@ -1544,7 +1544,11 @@ private static $encoding = 'UTF-8';
|
||||
}
|
||||
|
||||
$clonedir = $domain_cfg['DOMAINDIR'].$clone ;
|
||||
if (!is_dir($clonedir)) mkdir($clonedir) ;
|
||||
if (!is_dir($clonedir)) {
|
||||
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