Use 'mv' instead of 'cp' so as to avoid extra writes and not require any more free space.

This commit is contained in:
Tom Mortensen
2018-02-27 16:57:40 -08:00
parent f7dacf61cf
commit ebb2f66524

View File

@@ -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']}**");
?>