no drive should stay no drive in web. Createkey, gitignore

This commit is contained in:
mad
2018-09-23 15:51:44 +02:00
parent 3367b8a13f
commit 223090c0e4
3 changed files with 15 additions and 2 deletions

9
nlvmi
View File

@@ -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