Skip to content
Browse files

added

  • Loading branch information...
1 parent 22a5a42 commit cf74b418a1276ce142dc8af7b922bdb918f2a518 twerges committed Jan 6, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 devel/import_databases.sh
View
12 devel/import_databases.sh
@@ -0,0 +1,12 @@
+openssl pkcs12 -in ${EUCALYPTUS}/var/lib/eucalyptus/keys/euca.p12 \
+-name eucalyptus -name "eucalyptus" \
+-password pass:eucalyptus -passin pass:eucalyptus -passout pass:eucalyptus \
+-nodes | \
+grep -A30 "friendlyName: eucalyptus" | \
+egrep -A27 "BEGIN (RSA|PRIVATE)" | grep -v 'Bag Attributes' > ${EUCALYPTUS}/var/lib/eucalyptus/keys/cloud-pk.pem
+
+PASS=$($(dirname $(readlink -f $0))/dbPass.sh)
+
+echo $0
+mysql -u eucalyptus --password=${PASS} --port=8777 --protocol=TCP < $1
+

0 comments on commit cf74b41

Please sign in to comment.
Something went wrong with that request. Please try again.