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 \