Skip to content

Commit

Permalink
-X is assumed when using -d arg for curl
Browse files Browse the repository at this point in the history
  • Loading branch information
zick-debug committed Jan 28, 2024
1 parent 4a25061 commit 4010579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ send discord message with docker run:
```sh
-e DISCORD_WEBHOOK="https://discord.com/api/webhooks/xxxx/xxxxx" \
-e DISCORD_PRE_INIT_MESSAGE="Server initializing" \
-e PRE_INIT_HOOK='curl -sfSL -X POST -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$DISCORD_PRE_INIT_MESSAGE\"}" "$DISCORD_WEBHOOK"'
-e PRE_INIT_HOOK='curl -sfSL -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$DISCORD_PRE_INIT_MESSAGE\"}" "$DISCORD_WEBHOOK"'
```
send discord message with docker compose:
```yaml
- DISCORD_WEBHOOK=https://discord.com/api/webhooks/xxxx/xxxxx
- DISCORD_PRE_INIT_MESSAGE="Server initializing..."
- 'PRE_INIT_HOOK=curl -sfSL -X POST -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$$(eval echo $$DISCORD_PRE_INIT_MESSAGE)\"}" $$DISCORD_WEBHOOK'
- 'PRE_INIT_HOOK=curl -sfSL -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$$(eval echo $$DISCORD_PRE_INIT_MESSAGE)\"}" $$DISCORD_WEBHOOK'
```
## Reporting Issues/Feature Requests
Expand Down

0 comments on commit 4010579

Please sign in to comment.