mirror of
https://github.com/unraid/webgui.git
synced 2026-05-13 07:40:25 -05:00
Create missing directory.
This commit is contained in:
@@ -2520,6 +2520,7 @@ function addtemplatexml($post) {
|
||||
'os' => $usertemplate['template']['os'],
|
||||
'overrides' => $usertemplate
|
||||
];
|
||||
if (!is_dir(dirname($templateslocation))) mkdir(dirname($templateslocation));
|
||||
file_put_contents($templateslocation,json_encode($savedtemplates,JSON_PRETTY_PRINT));
|
||||
// Fire off the vnc/spice popup if available
|
||||
$reply = ['success' => true];
|
||||
|
||||
Reference in New Issue
Block a user