aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create
index 4ea8755..5fb2ca4 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -23,6 +23,10 @@ BASENAME="`basename $0`"
DIRNAME="`dirname $0`"
GLOBAL_USER_CONFIG_FILE="$HOME/.config/kvmxconfig"
+# Load basic functions
+export APP_BASE="`$DIRNAME/kvmx app_base`"
+source $APP_BASE/lib/kvmx/functions || exit 1
+
# Load configuration
function kvmx_config_load {
if [ ! -z "$1" ] && [ -e "$1" ]; then
@@ -261,7 +265,7 @@ function kvmx_create_custom {
privkey="`dirname $image`/ssh/`basename $image .img`.key"
pubkey="${privkey}.pub"
mkdir -p "`dirname $privkey`"
- $DIRNAME/kvmx-keygen $privkey "$user@`basename $image .img`"
+ __kvmx_ssh_keygen $privkey "$user@`basename $image .img`"
else
pubkey="$DIRNAME/share/ssh/insecure_private_key.pub"
fi