diff --git a/sync.run b/sync.run index 6ea032b..a7e9ff7 100644 --- a/sync.run +++ b/sync.run @@ -21,12 +21,16 @@ sleep 1 # prevent cpu spike on looping export MIRROR_DIR=/var/lib/ubuntumirror export IPFS_PATH=/var/lib/ipfs +export KEYID=790BC7277767219C42C86F933B4FE6ACC0B21F32 export GNUPGHOME=/etc/debmirror/ubuntu mkdir -p $GNUPGHOME chmod go-rwx $GNUPGHOME + gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg -cp $GNUPGHOME/pubring.gpg $GNUPGHOME/trustedkeys.gpg + +gpg --recv-key $KEYID +gpg --export $KEYID > $GNUPGHOME/trustedkeys.kbx chown -R ipfs:ipfs $GNUPGHOME @@ -63,8 +67,7 @@ debmirror \ # https://github.com/ipfs/go-ipfs/issues/3397#issuecomment-284337564 echo "Adding the mirror files to IPFS." -hash="$($IPFS add --progress --local --nocopy --fscache --quieter ---recursive "$MIRROR_DIR" | tail -n1)" +hash="$($IPFS add --progress --local --nocopy --fscache --quieter --recursive "$MIRROR_DIR" | tail -n1)" echo "Published IPFS hash ${hash}." echo "Updating IPNS."