Verified Commit 60cf366e authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat(config): adds PASSPHRASE_COMMAND parameter

parent 4804f6c4
......@@ -54,6 +54,11 @@ echo ">started at: $DATE" > $LOG
echo ">build flags: $MKP224O_BUILD_FLAGS" >> $LOG
cat $FILTERS | xargs echo ">filters:" >> $LOG
# Check for PASSPHRASE_COMMAND
if [ ! -z "$PASSPHRASE_COMMAND" ]; then
PASSPHRASE="`$PASSPHRASE_COMMAND`"
fi
# Run
echo "$BASENAME: starting mkp224o..."
$BASEDIR/bin/mkp224o $MKP224O_RUN_FLAGS 2>&1 | tee -a $LOG
......@@ -85,9 +85,15 @@ MKP224O_RUN_FLAGS="-s -d $CANDIDATES -f $FILTERS -B"
# Store the passphrase in a variable (not recommended)
#PASSPHRASE=""
# Fetch the passphrase using https://0xacab.org/rhatto/keyringer/
# Different values of $CONFIG might have different keys
#PASSPHRASE="`keyringer my-keyring decrypt onionmine/$CONFIG/passphrase 2> /dev/null | head -1`"
# Fetch the passphrase an external command
#
# Any external command can be used as long as it returns a passphrase in the
# standard output.
#
# Different values of $CONFIG might have different keys.
#
# The following example uses https://0xacab.org/rhatto/keyringer/
#PASSPHRASE_COMMAND="keyringer my-keyring decrypt onionmine/$CONFIG/passphrase 2> /dev/null | head -1"
#
# Other options
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment