X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Fexamples%2Flegacy%2Fgpg-daemon-launcher.sh;fp=infobase%2Fexamples%2Flegacy%2Fgpg-daemon-launcher.sh;h=f59c6d1fbc683a253c37e70bf70844407136b282;hb=8f403891425dfe131948be97cae4edf21f3f7869;hp=0000000000000000000000000000000000000000;hpb=a4d12589f1cd01826814842cde0b3eac95890bc9;p=feisty_meow.git diff --git a/infobase/examples/legacy/gpg-daemon-launcher.sh b/infobase/examples/legacy/gpg-daemon-launcher.sh new file mode 100644 index 00000000..f59c6d1f --- /dev/null +++ b/infobase/examples/legacy/gpg-daemon-launcher.sh @@ -0,0 +1,21 @@ +#!/bin/bash +############## +# Name : gpg-daemon-launcher +# Author : Chris Koeritz +# Rights : Copyright (C) 2012-$now by Feisty Meow Concerns, Ltd. +############## +# This script is free software; you can modify/redistribute it under the terms +# of the GNU General Public License. [ http://www.gnu.org/licenses/gpl.html ] +# Feel free to send updates to: [ fred@gruntose.com ] +############## + +# starts up the gpg-agent, but only if it's not already running. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +if [ -z "$(psa gpg-agent)" ]; then + gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info" &>$TMP/zz_gpg-agent-daemon.log +fi + + +