Add a Clean button in the Maintenance page

This commit is contained in:
nicolas.dorier
2019-04-01 17:10:05 +09:00
parent ad0edb5f4c
commit 78350db62d
2 changed files with 17 additions and 1 deletions

View File

@@ -249,6 +249,13 @@ namespace BTCPayServer.Controllers
return error;
StatusMessage = $"The server might restart soon if an update is available...";
}
else if (command == "clean")
{
var error = RunSSH(vm, $"btcpay-clean.sh");
if (error != null)
return error;
StatusMessage = $"The old docker images will be cleaned soon...";
}
else
{
return NotFound();