diff options
-rwxr-xr-x | bin/ak-categories | 2 | ||||
-rwxr-xr-x | bin/ak-comments | 2 | ||||
-rwxr-xr-x | bin/ak-config | 2 | ||||
-rwxr-xr-x | bin/ak-files | 2 | ||||
-rwxr-xr-x | bin/ak-mixtapes | 2 | ||||
-rwxr-xr-x | bin/ak-news | 4 | ||||
-rwxr-xr-x | bin/ak-pack_z_block | 6 | ||||
-rwxr-xr-x | bin/ak-profile | 2 | ||||
-rwxr-xr-x | bin/ak-reference | 2 | ||||
-rwxr-xr-x | bin/ak-sm-files | 2 | ||||
-rwxr-xr-x | bin/ak-todos | 2 | ||||
-rwxr-xr-x | bin/ak-transactions | 2 | ||||
-rwxr-xr-x | bin/ak-zblock-manipulator | 6 |
13 files changed, 18 insertions, 18 deletions
diff --git a/bin/ak-categories b/bin/ak-categories index d72453f..f5a6671 100755 --- a/bin/ak-categories +++ b/bin/ak-categories @@ -72,7 +72,7 @@ add(){ TITLE=$(head -n 1 $FILE) FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" - gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { diff --git a/bin/ak-comments b/bin/ak-comments index 416d2a8..3a35efa 100755 --- a/bin/ak-comments +++ b/bin/ak-comments @@ -58,7 +58,7 @@ add(){ DATETIME="$1" FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" - gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) printf '{"datetime":"%s","ipfs":"%s","detach":"%s"}' $DATETIME $FILE_IPFS_HASH $FILE_SIGNATURE > data else diff --git a/bin/ak-config b/bin/ak-config index 0dfed8e..513c8dc 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -44,7 +44,7 @@ published(){ # We will be using our public key also to put it in the block later KEY="tmp-gpg.pub" -gpg2 --armour --output $KEY --export $FINGERPRINT +gpg2 --armour --output $KEY --export $AK_FINGERPRINT GPG_PUB_KEY=$(ak-ipfs-add $KEY) rm $KEY diff --git a/bin/ak-files b/bin/ak-files index fe0d279..d663d59 100755 --- a/bin/ak-files +++ b/bin/ak-files @@ -63,7 +63,7 @@ main(){ fi logit "[INFO]" "Signing..." SIGN_FILE=$FILENAME".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILE if [ $? == 0 ]; then logit "[INFO]" "Signed" else diff --git a/bin/ak-mixtapes b/bin/ak-mixtapes index 93ba01b..8c6089d 100755 --- a/bin/ak-mixtapes +++ b/bin/ak-mixtapes @@ -13,7 +13,7 @@ main(){ MIXTAPE_IPFS_HASH=$(ak-ipfs-add $MIXTAPE_FILE) MIXTAPE_SIGN_FILE=$MIXTAPE_FILE".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $MIXTAPE_SIGN_FILE $MIXTAPE_FILE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $MIXTAPE_SIGN_FILE $MIXTAPE_FILE MIXTAPE_SIGNATURE=$(ak-ipfs-add $MIXTAPE_SIGN_FILE) diff --git a/bin/ak-news b/bin/ak-news index 1c0a440..2c0e9de 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 $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg --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 $FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE + gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { diff --git a/bin/ak-pack_z_block b/bin/ak-pack_z_block index a974c7d..cf51b18 100755 --- a/bin/ak-pack_z_block +++ b/bin/ak-pack_z_block @@ -60,14 +60,14 @@ main(){ # We create a detached and armor signature of it MESSAGE_SIGN_FILE=$MESSAGE".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE # We add the signature to IPFS MESSAGE_SIGNATURE=$(ak-ipfs-add $MESSAGE_SIGN_FILE) # We will be using our public key also to put it in the block later KEY="gpg.pub" - gpg2 --armour --output $KEY --export $FINGERPRINT + gpg2 --armour --output $KEY --export $AK_FINGERPRINT GPG_PUB_KEY=$(ak-ipfs-add $KEY) # Acquire last block of information, to chain this one with previous posted @@ -78,7 +78,7 @@ main(){ BLOCK="block" BLOCK_SIG=$BLOCK".asc" # We have a block now, so we sign it - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $BLOCK_SIG $BLOCK + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $BLOCK_SIG $BLOCK # We now add the signature to IPFS BLOCK_SIGNATURE=$(ak-ipfs-add $BLOCK_SIG) diff --git a/bin/ak-profile b/bin/ak-profile index 17cf399..b17decb 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -156,7 +156,7 @@ add(){ echo "Adding from " $FILE FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$(pwd)/$1".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { diff --git a/bin/ak-reference b/bin/ak-reference index 4c41005..d277aa0 100755 --- a/bin/ak-reference +++ b/bin/ak-reference @@ -93,7 +93,7 @@ add(){ #FILE=$(head -n 1 $FILE) FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" - gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { diff --git a/bin/ak-sm-files b/bin/ak-sm-files index d937763..5868a61 100755 --- a/bin/ak-sm-files +++ b/bin/ak-sm-files @@ -77,7 +77,7 @@ main(){ logit "[INFO]" "Signing..." SIGN_FILE=$FILENAME".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILENAME + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILENAME if [ $? == 0 ]; then logit "[INFO]" "Signed" else diff --git a/bin/ak-todos b/bin/ak-todos index be2fd86..5be7745 100755 --- a/bin/ak-todos +++ b/bin/ak-todos @@ -80,7 +80,7 @@ add(){ TITLE=$(head -n 1 $FILE) FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" - gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { diff --git a/bin/ak-transactions b/bin/ak-transactions index c100774..cc7dddd 100755 --- a/bin/ak-transactions +++ b/bin/ak-transactions @@ -20,7 +20,7 @@ EOF FILE_IPFS_HASH=$(ak-ipfs-add $TRANSACTION_FILE) SIGN_FILE=$TRANSACTION_FILE".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $TRANSACTION_FILE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $TRANSACTION_FILE FILE_SIGNATURE=$(ak-ipfs-add $SIGN_FILE) diff --git a/bin/ak-zblock-manipulator b/bin/ak-zblock-manipulator index 0076fa1..2f75fbf 100755 --- a/bin/ak-zblock-manipulator +++ b/bin/ak-zblock-manipulator @@ -49,14 +49,14 @@ main(){ # We create a detached and armor signature of it MESSAGE_SIGN_FILE=$MESSAGE".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE # We add the signature to IPFS MESSAGE_SIGNATURE=$(ak-ipfs-add $MESSAGE_SIGN_FILE) # We will be using our public key also to put it in the block later KEY="gpg.pub" - gpg2 --armour --output $KEY --export $FINGERPRINT + gpg2 --armour --output $KEY --export $AK_FINGERPRINT GPG_PUB_KEY=$(ak-ipfs-add $KEY) # Acquire last block of information, to chain this one with previous posted @@ -78,7 +78,7 @@ makeZBlock(){ BLOCK="block" BLOCK_SIG=$BLOCK".asc" # We have a block now, so we sign it - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $BLOCK_SIG $BLOCK + gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $BLOCK_SIG $BLOCK # We now add the signature to IPFS BLOCK_SIGNATURE=$(ak-ipfs-add $BLOCK_SIG) |