mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
Merge pull request #1614 from SimonFair/User-VM-templates
VM templates Create missing directory.
This commit is contained in:
@@ -2522,6 +2522,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));
|
||||
$reply = ['success' => true];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user