aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkeyringer4
-rwxr-xr-xshare/keyringer/genpair2
2 files changed, 6 insertions, 0 deletions
diff --git a/keyringer b/keyringer
index 15f9295..2529a85 100755
--- a/keyringer
+++ b/keyringer
@@ -22,6 +22,7 @@ function keyringer_init {
BASEDIR="$3"
URL="$4"
RECIPIENTS="$BASEDIR/config/recipients"
+ OPTIONS="$BASEDIR/config/options"
# Parse
if [ -z "$BASEDIR" ]; then
@@ -53,6 +54,9 @@ function keyringer_init {
echo "# Use entries in the form of 'john@doe.com XXXXXXXX" > $RECIPIENTS
echo "" >> $RECIPIENTS
+ # Setup options
+ touch $OPTIONS
+
# Setup README
echo "Keyring repository powered by http://git.sarava.org/?p=keyringer.git;a=summary" > $BASEDIR/README
echo "" >> $BASEDIR/README
diff --git a/share/keyringer/genpair b/share/keyringer/genpair
index 723cd98..774e7ab 100755
--- a/share/keyringer/genpair
+++ b/share/keyringer/genpair
@@ -20,6 +20,7 @@ function genpair_ssh {
echo "Encrypting public key into keyringer..."
cat $WORK/id_dsa.pub | keyringer_exec encrypt $BASEDIR $FILE.pub
+ # TODO: add outfiles into version control
if [ ! -z "$OUTFILE" ]; then
mkdir -p `dirname $OUTFILE`
echo Saving copies at $OUTFILE and $OUTFILE.pub
@@ -57,6 +58,7 @@ EOF
echo "Encrypting passphrase into keyringer..."
echo "Passphrase for $FILE: $passphrase" | keyringer_exec encrypt $BASEDIR $FILE.passwd
+ # TODO: add outfiles into version control
if [ ! -z "$OUTFILE" ]; then
mkdir -p `dirname $OUTFILE`
echo Saving copies at $OUTFILE and $OUTFILE.pub