aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-news
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-news')
-rwxr-xr-xbin/ak-news4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ak-news b/bin/ak-news
index 2c0e9de..5103371 100755
--- a/bin/ak-news
+++ b/bin/ak-news
@@ -90,7 +90,7 @@ add2(){
TITLE=$(head -n 1 $FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
@@ -124,7 +124,7 @@ add(){
TITLE=$(head -n 1 $ZNEWSDIR/$FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $ZNEWSDIR/$FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE
+ gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{