Merge branch 'release-2.140.101'
[feisty_meow.git] / infobase / examples / legacy / gpg-daemon-launcher.sh
1 #!/bin/bash
2 ##############
3 # Name   : gpg-daemon-launcher
4 # Author : Chris Koeritz
5 # Rights : Copyright (C) 2012-$now by Feisty Meow Concerns, Ltd.
6 ##############
7 # This script is free software; you can modify/redistribute it under the terms
8 # of the GNU General Public License. [ http://www.gnu.org/licenses/gpl.html ]
9 # Feel free to send updates to: [ fred@gruntose.com ]
10 ##############
11
12 # starts up the gpg-agent, but only if it's not already running.
13
14 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
15
16 if [ -z "$(psa gpg-agent)" ]; then
17   gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info" &>$TMP/zz_gpg-agent-daemon.log
18 fi
19
20
21