]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Edit default recipients during initialization
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Nov 2013 13:15:32 +0000 (11:15 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Nov 2013 13:15:32 +0000 (11:15 -0200)
keyringer
lib/keyringer/functions

index 8ba1093d92b7787749a7df1a689c623e381d2024..7aad6a08a87a8b4cd994bbf35cf76aeba7524f27 100755 (executable)
--- a/keyringer
+++ b/keyringer
@@ -90,8 +90,16 @@ function keyringer_init {
   # Init
   if ! keyringer_is_git "$BASEDIR"; then
     keyringer_exec git "$BASEDIR" init
+
+    # Edit default recipients
+    echo "Now you have to edit the default recipient configuration to be able to encrypt secrets."
+    echo "Press any key to proceed editing..."
+    read key
+    keyringer $KEYRING recipients edit default
+
+    # Stage and commit
     keyringer_exec git "$BASEDIR" add .
-    keyringer_exec git "$BASEDIR" commit -m Importing
+    keyringer_exec git "$BASEDIR" commit -m Initializing
   fi
 }
 
index d1bbb1cd749465f4ce85b21d70902eea81e63d40..b39b8ec157bdaa8b89b5f257451cd790980a7ae9 100755 (executable)
@@ -517,7 +517,7 @@ function keyringer_set_new_recipients {
 function keyringer_create_new_recipients {
   if [ ! -e "$1" ]; then
     mkdir -p "`dirname $1`"
-    echo "# Use entries in the form of 'john@doe.com XXXXXXXX'" > "$1"
+    echo "# Use entries in the form of 'john@doe.com XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'" > "$1"
     echo "" >> "$1"
   fi
 }