mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Improve Downgrade process
This commit is contained in:
@@ -20,6 +20,9 @@ require_once "$docroot/webGui/include/Secure.php";
|
||||
$_SERVER['REQUEST_URI'] = 'plugins';
|
||||
require_once "$docroot/webGui/include/Translations.php";
|
||||
|
||||
$tmpdir="/boot/deletemedowngrade.".uniqid();
|
||||
mkdir($tmpdir);
|
||||
exec("mv -f /boot/bz* $tmpdir");
|
||||
exec("mv -f /boot/previous/* /boot");
|
||||
$version = unscript(_var($_GET,'version'));
|
||||
file_put_contents("$docroot/plugins/unRAIDServer/README.md","**"._('DOWNGRADE TO VERSION')." $version**");
|
||||
|
||||
@@ -38,3 +38,5 @@ mkdir -p "$CFG_NEW"
|
||||
# stating with 6.10 'USE_SSL="auto"' without a LE cert is invalid
|
||||
[[ ! -f /boot/config/ssl/certs/certificate_bundle.pem ]] && sed -i s/USE_SSL=\"auto\"/USE_SSL=\"no\"/ /boot/config/ident.cfg
|
||||
|
||||
# delete any temp dir left over from a version downgrade (see dynamix.plugin.manager/include/Downgrade.php)
|
||||
rm -rf /boot/deletemedowngrade.*
|
||||
|
||||
Reference in New Issue
Block a user