mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2025-12-31 04:00:03 +01:00
restore delete old challange files
This commit is contained in:
parent
5658636051
commit
c0fd72c13a
@ -107,8 +107,11 @@ namespace LetsEncrypt
|
|||||||
throw new DirectoryNotFoundException(string.Format("Directory {0} wasn't created", acme));
|
throw new DirectoryNotFoundException(string.Format("Directory {0} wasn't created", acme));
|
||||||
}
|
}
|
||||||
|
|
||||||
//foreach (FileInfo file in new DirectoryInfo(acme).GetFiles())
|
foreach (FileInfo file in new DirectoryInfo(acme).GetFiles()) {
|
||||||
//file.Delete();
|
if(file.LastWriteTimeUtc < DateTime.UtcNow.AddMonths(-3))
|
||||||
|
file.Delete();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach (var result in orders.Result)
|
foreach (var result in orders.Result)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"AppSettings": {
|
"AppSettings": {
|
||||||
|
|
||||||
"active": "ProductionV2",
|
"active": "StagingV2",
|
||||||
|
|
||||||
"environments": [
|
"environments": [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user