From 7ebfab8678d0adae6b7a0c389351a1599be81bfe Mon Sep 17 00:00:00 2001 From: Crynners Date: Tue, 31 Aug 2021 12:27:41 +0200 Subject: [PATCH] Change deployment output --- CryptoBotFunction/install_script.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CryptoBotFunction/install_script.ps1 b/CryptoBotFunction/install_script.ps1 index 64cb583..4133866 100644 --- a/CryptoBotFunction/install_script.ps1 +++ b/CryptoBotFunction/install_script.ps1 @@ -433,13 +433,18 @@ if( $null -eq $DeployAzureFunctionResult ){ Write-Host "[Step 9 / 9] Function app deployment -> DONE" -ForegroundColor cyan +if ( ($NCronTabExpression -eq $null) -or ($NCronTabExpression -eq '')) { + $DeploymentResult = " => The AccBot bot is already deployed and should now start buying " + $Currency + " at " + $randomMinutes + ". minute every " + $NextHour + "hour." +}else{ + $DeploymentResult = " => The AccBot bot is already deployed and should now start buying " + $Currency + " by NCRONTAB '" + $NCronTabExpression + "' expression. Check the details https://ncrontab.swimburger.net/" +} #Zobrazit výstup co se stalo $output = "The following entities were successfully created in Azure: `n`t ResourceGroup: " + $resourceGroupName + "`n"` + "`t CosmosDBAccount: " + $cosmosDBAccountName + "`n"` + "`t Azure storage: " + $storageAccountName + "`n"` + "`t Azure function: " + $azFunctionName + "`n"` - + " => The AccBot bot is already deployed and should now start buying " + $Currency + " at " + $randomMinutes + ". minute every " + $NextHour + "hour." + + $DeploymentResult Write-Host $output -ForegroundColor green pause