From bc42aea3a30e8e46bd7286df57b58ba6c713bf05 Mon Sep 17 00:00:00 2001 From: gfrank Date: Tue, 3 Nov 2015 09:48:57 -0500 Subject: [PATCH] Replace slashes in the parameter string Also remove duplicate documentation --- windows/win_nssm.ps1 | 4 +++- windows/win_nssm.py | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/windows/win_nssm.ps1 b/windows/win_nssm.ps1 index fa61afdaafc..588a2f22672 100644 --- a/windows/win_nssm.ps1 +++ b/windows/win_nssm.ps1 @@ -149,7 +149,9 @@ Function ParseAppParameters() [string]$appParameters ) - return ConvertFrom-StringData -StringData $appParameters.TrimStart("@").TrimStart("{").TrimEnd("}").Replace("; ","`n") + $escapedAppParameters = $appParameters.TrimStart("@").TrimStart("{").TrimEnd("}").Replace("; ","`n").Replace("\","\\") + + return ConvertFrom-StringData -StringData $escapedAppParameters } diff --git a/windows/win_nssm.py b/windows/win_nssm.py index 98be076a48b..c0a4332cc3b 100644 --- a/windows/win_nssm.py +++ b/windows/win_nssm.py @@ -86,11 +86,6 @@ options: - Password to be used for service startup required: false default: null - password: - description: - - Password to be used for service startup - required: false - default: null start_mode: description: - If C(auto) is selected, the service will start at bootup. C(manual) means that the service will start only when another service needs it. C(disabled) means that the service will stay off, regardless if it is needed or not.