2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-06-02 09:19:39 +00:00
Files

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 --import /tmp/$file --root-pw
ssh $node reboot
nodeconsole $node -ea enrollmok.nca