39 lines
900 B
Bash
Executable File
39 lines
900 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# powerwall - CLI commands to control VM guest power
|
|
|
|
action="$1"
|
|
FOLDER='/opt/idssys/powerwall'
|
|
VERS='1.030921'
|
|
|
|
|
|
source /opt/idssys/powerwall/defaults.inc
|
|
source /opt/idssys/powerwall/powerwall.conf
|
|
source /opt/idssys/defaults/colors.inc
|
|
source /opt/idssys/defaults/default.inc
|
|
|
|
#ssh root@10.5.10.35 '/vmfs/volumes/NFS_ESXi-Vault/esxi-shutdown.sh > /dev/null 2>&1' & > /dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${action-x} ]; then
|
|
case $action in
|
|
gettemp) NEWCERT ${2};;
|
|
certrenew) CERTRENEW;;
|
|
delssl) DEL-SSL ${2};;
|
|
listcerts) LISTCERTS;;
|
|
checkcerts) CHECK-CERTS ${2};;
|
|
nightlyrenew) NIGHTLYRENEW;;
|
|
delsite) DELSITE ${2} ${3} ${4} ${5};;
|
|
delsites) DELSITES;;
|
|
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15};;
|
|
update) ;;
|
|
update-nodes) NODEUPDATE ${2};;
|
|
update-dyndns) UPDATE_DYNDNS ${2};;
|
|
backup) BACKUP;;
|
|
|
|
esac
|
|
fi
|
|
|
|
exit 0 |