mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Windows does not like "&"
This commit is contained in:
parent
067438f3c2
commit
689fc9909c
3 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ with warnings.catch_warnings():
|
|||
warnings.simplefilter("ignore")
|
||||
import pkg_resources
|
||||
|
||||
SCHEDULED_TASK_NAME = 'Certbot Renew & Auto-Update Task'
|
||||
SCHEDULED_TASK_NAME = 'Certbot Renew and Auto-Update Task'
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
$tasks = "Certbot Renew & Auto-Update Task", "Certbot Renew Task"
|
||||
$tasks = "Certbot Renew and Auto-Update Task", "Certbot Renew Task"
|
||||
|
||||
foreach ($task in $tasks) {
|
||||
$exists = Get-ScheduledTask | Where-Object { $_.TaskName -like $task }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName }
|
|||
$down = Join-Path (Get-ScriptDirectory) 'tasks-down.ps1'
|
||||
& $down
|
||||
|
||||
$taskName = "Certbot Renew & Auto-Update Task"
|
||||
$taskName = "Certbot Renew and Auto-Update Task"
|
||||
$taskDescription = "Execute twice a day the 'certbot renew' command, to renew managed certificates if needed, and upgrade Certbot is a new version is available."
|
||||
|
||||
$actionRenew = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument "-NoProfile -WindowStyle Hidden -Command ""& '$InstallDir\bin\certbot.exe' renew"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue