removed base64 invocation in favor of perl to reduce dependency spread.
[monkeysphere.git] / src / share / ma / setup
index e77afff4299795c7a442bccf43e74dea1f2884e3..f9910507c39fd6ad4724bbfbb62a879a50da1c41 100644 (file)
@@ -57,7 +57,7 @@ EOF
     if [ -z "$CORE_FPR" ] ; then
        log info "setting up Monkeysphere authentication trust core..."
 
-       local CORE_UID=$(printf "Monkeysphere authentication trust core UID (random string: %s)" $(head -c21 </dev/urandom | base64))
+       local CORE_UID=$(printf "Monkeysphere authentication trust core UID (random string: %s)" $(head -c21 </dev/urandom | perl -MMIME::Base64 -ne 'print encode_base64($_)'))
     
        log debug "generating monkeysphere authentication trust core key ($CORE_KEYLENGTH bits)..."
        PEM2OPENPGP_USAGE_FLAGS=certify \