Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
statuspage-notifications
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Systems
statuspage-notifications
Commits
1016ab4e
Commit
1016ab4e
authored
Feb 14, 2018
by
Ryan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct command escaping
parent
f5344fe0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
statuspage-notifications-command.conf
statuspage-notifications-command.conf
+3
-3
No files found.
statuspage-notifications-command.conf
View file @
1016ab4e
...
...
@@ -52,7 +52,7 @@ object NotificationCommand "statuspage-notifications-command" {
log
(
LogDebug
,
"statuspage-notifications"
,
"Generating notification command"
)
var
statuspage_payload
=
"component[status]="
+
component_status
var
payload_argument
=
escape_shell_arg
(
statuspage_payload
)
var
statuspage_api_key_argument
=
escape_shell_arg
(
statuspage_api_key
)
var
statuspage_api_key_argument
=
escape_shell_arg
(
"Authorization: OAuth "
+
statuspage_api_key
)
var
statuspage_api_url_argument
=
escape_shell_arg
(
statuspage_api_url
+
"/components/"
+
component_id
+
".json"
)
var
cmd
= [
"curl"
,
...
...
@@ -61,8 +61,8 @@ object NotificationCommand "statuspage-notifications-command" {
"--max-time"
,
"60"
,
"--silent"
,
"--show-error"
,
"-X"
,
"PATCH"
,
"-H"
,
"'Authorization: OAuth "
+
statuspage_api_key_argument
+
"'"
,
"-d"
,
"component[status]="
+
payload_argument
,
"-H"
,
statuspage_api_key_argument
,
"-d"
,
payload_argument
,
statuspage_api_url_argument
]
var
notification_command
=
cmd
.
join
(
" "
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment