From b1d3560dd367ac44ff7d5e79aec49a25ec799c5b Mon Sep 17 00:00:00 2001 From: Iwan Clement Date: Sun, 17 May 2020 16:04:46 +0200 Subject: [PATCH] ok --- scripts/ChangeCatchAllRoute.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/ChangeCatchAllRoute.sh b/scripts/ChangeCatchAllRoute.sh index 7e3adca..9540b94 100755 --- a/scripts/ChangeCatchAllRoute.sh +++ b/scripts/ChangeCatchAllRoute.sh @@ -5,8 +5,13 @@ MG_URL="https://api.mailgun.net/v3/routes" MG_APIKEY="api:key-6e4b01ba0681141a509c1c462fca40f4" MG_ORDER="GET /routes" -curl -s --user $MG_APIKEY -G \ - $MG_URL +curl -s --user $MG_APIKEY -X PUT \ + "$MG_URL/5b6cbd328b3cd70001eb4eb2" \ + -F priority=10 \ + -F description='On ramasse tout' \ + -F expression='catch_all()' \ + -F action='forward("iwan.pubclement@gmx.fr")' \ + -F action='stop()' exit 0 curl -s --user $MG_APIKEY -G \