wow-private-server/create_user.sh
2025-09-01 17:25:49 +02:00

16 lines
632 B
Bash
Executable File

#!/usr/bin/env bash
curl -s -u "soapuser:soappass" \
-H "Content-Type: text/xml" \
-d '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:ns1="urn:MaNGOS">
<SOAP-ENV:Body>
<ns1:command>account create test2 testpass</ns1:command>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>' \
http://localhost:7878/