no drive should stay no drive in web. Createkey, gitignore
This commit is contained in:
9
nlvmi
9
nlvmi
@@ -102,7 +102,10 @@ function createdb {
|
||||
fi
|
||||
checkdb && echo "DB creation successful!" || (echo "Failed to create the DB"; exit 1)
|
||||
}
|
||||
|
||||
#create signing key
|
||||
function createkey {
|
||||
openssl req -nodes -x509 -sha256 -newkey rsa:4096 -keyout "nlvmi_priv.key" -out "nlvmi_sign.crt" -days 9999 -subj "/CN=nlvmi_signing"
|
||||
}
|
||||
#autostart VMs
|
||||
function vmautostart {
|
||||
if [ $DATABASETYPE == "sqlite" ]; then
|
||||
@@ -291,6 +294,10 @@ if [ $# -gt 0 ]; then
|
||||
echo "not allowed";
|
||||
fi
|
||||
fi
|
||||
elif [ $1 == "createkey" ]; then
|
||||
if [ ! -z $MASTERSERVER ]; then
|
||||
createkey
|
||||
fi
|
||||
fi
|
||||
else
|
||||
checkdb
|
||||
|
||||
Reference in New Issue
Block a user