#!/bin/sh cd /usr/local/prox if ./prox etc/prox.conf -licenseNumber $1 -machineID $2 -testLicense 1; then cp etc/prox.conf etc/prox.conf.bak egrep -v "licenseNumber|machineID" etc/prox.conf.bak > etc/prox.conf (echo licenseNumber $1 \# DO NOT MODIFY OR DELETE LICENSE; echo machineID $2 \# DO NOT MODIFY OR DELETE SECURITY KEY) >> etc/prox.conf; echo "Security key set; installation complete."; echo "Reboot to start DataReactor Core automatically."; exit 0; else echo "Invalid security key. Please repeat the security process."; exit 1; fi