mirror of
https://github.com/unraid/webgui.git
synced 2025-12-30 14:09:53 -06:00
Remove OpenElec and LibreElec
This commit is contained in:
@@ -72,11 +72,7 @@ if (isset($_GET['uuid'])) {
|
||||
if (empty($_GET['template'])) {
|
||||
// read vm-template attribute
|
||||
$strTemplateOS = $lv->_get_single_xpath_result($res, '//domain/metadata/*[local-name()=\'vmtemplate\']/@os');
|
||||
$strLibreELEC = $lv->_get_single_xpath_result($res, '//domain/metadata/*[local-name()=\'vmtemplate\']/@libreelec');
|
||||
$strOpenELEC = $lv->_get_single_xpath_result($res, '//domain/metadata/*[local-name()=\'vmtemplate\']/@openelec');
|
||||
if ($strLibreELEC) $strSelectedTemplate = 'LibreELEC';
|
||||
elseif ($strOpenELEC) $strSelectedTemplate = 'OpenELEC';
|
||||
elseif ($strTemplateOS) {
|
||||
if ($strTemplateOS) {
|
||||
$strSelectedTemplate = $lv->_get_single_xpath_result($res, '//domain/metadata/*[local-name()=\'vmtemplate\']/@name');
|
||||
} else {
|
||||
// legacy VM support for <6.2 but need it going forward too
|
||||
|
||||
@@ -343,17 +343,6 @@ class Array2XML {
|
||||
]
|
||||
],
|
||||
|
||||
' Pre-packaged ' => '', /* Pre-built Header */
|
||||
|
||||
'LibreELEC' => [
|
||||
'form' => 'LibreELEC.form.php',
|
||||
'icon' => 'libreelec.png'
|
||||
],
|
||||
|
||||
'OpenELEC' => [
|
||||
'form' => 'OpenELEC.form.php',
|
||||
'icon' => 'openelec.png'
|
||||
],
|
||||
|
||||
' Linux ' => '', /* Linux Header */
|
||||
|
||||
@@ -441,51 +430,6 @@ class Array2XML {
|
||||
]
|
||||
];
|
||||
|
||||
$arrOpenELECVersions = [
|
||||
'6.0.3_1' => [
|
||||
'name' => '6.0.3',
|
||||
'url' => 'https://s3.amazonaws.com/dnld.lime-technology.com/images/OpenELEC/OpenELEC-unRAID.x86_64-6.0.3_1.tar.xz',
|
||||
'size' => 178909136,
|
||||
'md5' => 'c584312831d7cd93a40e61ac9f186d32',
|
||||
'localpath' => '',
|
||||
'valid' => '0'
|
||||
],
|
||||
'6.0.0_1' => [
|
||||
'name' => '6.0.0',
|
||||
'url' => 'https://s3.amazonaws.com/dnld.lime-technology.com/images/OpenELEC/OpenELEC-unRAID.x86_64-6.0.0_1.tar.xz',
|
||||
'size' => 165658636,
|
||||
'md5' => '66fb6c3f1b6db49c291753fb3ec7c15c',
|
||||
'localpath' => '',
|
||||
'valid' => '0'
|
||||
],
|
||||
'5.95.3_1' => [
|
||||
'name' => '5.95.3 (6.0.0 Beta3)',
|
||||
'url' => 'https://s3.amazonaws.com/dnld.lime-technology.com/images/OpenELEC/OpenELEC-unRAID.x86_64-5.95.3_1.tar.xz',
|
||||
'size' => 153990180,
|
||||
'md5' => '8936cda74c28ddcaa165cc49ff2a477a',
|
||||
'localpath' => '',
|
||||
'valid' => '0'
|
||||
],
|
||||
'5.95.2_1' => [
|
||||
'name' => '5.95.2 (6.0.0 Beta2)',
|
||||
'url' => 'https://s3.amazonaws.com/dnld.lime-technology.com/images/OpenELEC/OpenELEC-unRAID.x86_64-5.95.2_1.tar.xz',
|
||||
'size' => 156250392,
|
||||
'md5' => 'ac70048eecbda4772e386c6f271cb5e9',
|
||||
'localpath' => '',
|
||||
'valid' => '0'
|
||||
]
|
||||
];
|
||||
|
||||
$arrLibreELECVersions = [
|
||||
'7.0.1_1' => [
|
||||
'name' => '7.0.1',
|
||||
'url' => 'https://s3.amazonaws.com/dnld.lime-technology.com/images/LibreELEC/LibreELEC-unRAID.x86_64-7.0.1_1.tar.xz',
|
||||
'size' => 209748564,
|
||||
'md5' => 'c1e8def2ffb26a355e7cc598311697f6',
|
||||
'localpath' => '',
|
||||
'valid' => '0'
|
||||
]
|
||||
];
|
||||
|
||||
$fedora = '/var/tmp/fedora-virtio-isos';
|
||||
// set variable to obtained information
|
||||
|
||||
@@ -228,22 +228,20 @@ function addVMContext(name, uuid, template, state, vmrcurl, vmrcprotocol, log, f
|
||||
ajaxVMDispatch({action:"domain-undefine",uuid:uuid}, "loadlist");
|
||||
});
|
||||
}});
|
||||
if (template != 'OpenELEC') {
|
||||
opts.push({text:_("Remove VM")+" & "+_("Disks"), icon:"fa-trash", action:function(e) {
|
||||
e.preventDefault();
|
||||
swal({
|
||||
title:_("Are you sure?"),
|
||||
text:_("Completely REMOVE")+" "+name+" "+_("disk image and definition"),
|
||||
type:"warning",
|
||||
showCancelButton:true,
|
||||
confirmButtonText:_('Proceed'),
|
||||
cancelButtonText:_('Cancel')
|
||||
},function(){
|
||||
$('#vm-'+uuid).find('i').removeClass('fa-play fa-square fa-pause').addClass('fa-refresh fa-spin');
|
||||
ajaxVMDispatch({action:"domain-delete",uuid:uuid}, "loadlist");
|
||||
});
|
||||
}});
|
||||
}
|
||||
opts.push({text:_("Remove VM")+" & "+_("Disks"), icon:"fa-trash", action:function(e) {
|
||||
e.preventDefault();
|
||||
swal({
|
||||
title:_("Are you sure?"),
|
||||
text:_("Completely REMOVE")+" "+name+" "+_("disk image and definition"),
|
||||
type:"warning",
|
||||
showCancelButton:true,
|
||||
confirmButtonText:_('Proceed'),
|
||||
cancelButtonText:_('Cancel')
|
||||
},function(){
|
||||
$('#vm-'+uuid).find('i').removeClass('fa-play fa-square fa-pause').addClass('fa-refresh fa-spin');
|
||||
ajaxVMDispatch({action:"domain-delete",uuid:uuid}, "loadlist");
|
||||
});
|
||||
}});
|
||||
}
|
||||
if (usage) { context.destroy('#vmusage-'+uuid); context.attach('#vmusage-'+uuid, opts); } else { context.destroy('#vm-'+uuid); context.attach('#vm-'+uuid, opts); }
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user