aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-31 10:18:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-31 10:18:33 -0300
commit3b606e398e0ae95708be37e015d6d5fd0ff6ad0c (patch)
treee618377493ad6ee56bb3265e9d406fa1424b446b /kvmx-create
parent34a57bcb0139c61d4c096477d50c0fc9d71169b9 (diff)
downloadkvmx-3b606e398e0ae95708be37e015d6d5fd0ff6ad0c.tar.gz
kvmx-3b606e398e0ae95708be37e015d6d5fd0ff6ad0c.tar.bz2
Library support
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