mirror of
https://github.com/xcat2/confluent.git
synced 2026-06-02 17:28:32 +00:00
13 lines
252 B
Bash
Executable File
13 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z "$MOKPASS" ]; then
|
|
echo "MOKPASS must be set to proceed"
|
|
exit 1
|
|
fi
|
|
set -euo pipefail
|
|
node=$2
|
|
file=$1
|
|
nodersync $file $node:/tmp/
|
|
ssh $node mokutil --delete /tmp/$file --root-pw
|
|
ssh $node reboot
|
|
nodeconsole $node -ea deletemok.nca
|