#!/bin/sh # Nico Schottelius # 2020-12-21 set -e set -x if [ $# -ne 2 ]; then echo "$0 vigir-ip-address vigir-id" echo " vigir-ip-address: where to find the vigir" echo " vigir-id: number in decimal format" exit 1 fi vigir_ip=$1; shift id=$1; shift vigir_hostname=vigir${id} root_password=$(pwgen -1 32) # Save for sending to user # FIXME: future make this more easy / better to transfer echo $root_password > ${vigir_hostname}.rootpw cat <