37338-vm/verify_fix.sh
2026-01-11 08:54:28 +00:00

12 lines
542 B
Bash
Executable File

#!/bin/bash
# Login and save cookie
curl -s -L -c cookie.txt -X POST -F 'email=admin@example.com' -F 'password=password' http://localhost/login.php > /dev/null
# Initialize the process
# First, delete any existing instance for this person and process to ensure a clean slate
curl -s -L -b cookie.txt -X POST -F 'person_id=9' -F 'process_id=4' -F 'delete_existing=1' http://localhost/_init_single_instance.php > /dev/null
# Get instance details
curl -s -L -b cookie.txt "http://localhost/_get_instance_details.php?person_id=9&process_id=4"