mirror of
https://github.com/unraid/webgui.git
synced 2026-01-22 17:40:19 -06:00
Use 'mv' instead of 'cp' so as to avoid extra writes and not require any more free space.
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
exec("cp -rf /boot/previous/* /boot >/dev/null");
|
||||
exec("rm -rf /boot/previous >/dev/null");
|
||||
exec("mv -f /boot/previous/* /boot");
|
||||
file_put_contents("$docroot/plugins/unRAIDServer/README.md","**DOWNGRADE TO VERSION {$_GET['version']}**");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user