set local IP address

This commit is contained in:
Florian Schlegel 2019-09-02 21:13:42 +02:00
parent dc7e235922
commit bf9840f21f
1 changed files with 2 additions and 2 deletions

4
vm_control.sh Normal file → Executable file
View File

@ -4,7 +4,7 @@ USERNAME="$1"
PASSWORD="$2"
REALM="$3"
TARGET_VMID="$4"
HOST="https://vmsrv01.viewanime.net"
HOST="https://172.23.92.239:8006"
NODE="proxmox"
JQ=$(which jq)
@ -49,4 +49,4 @@ CSRF=$(echo "$OUTPUT" | jq -r '.data | .CSRFPreventionToken')
START_TASK_DATA=$($CURL -s -k -b "PVEAuthCookie=$TICKET" -H "CSRFPreventionToken: $CSRF" -X POST $HOST/api2/json/nodes/$NODE/qemu/$TARGET_VMID/status/$TARGET_ACTION)
echo "$START_TASK_DATA" | $JQ
echo "$START_TASK_DATA" | $JQ