fixing mirror gpg issue
This commit is contained in:
parent
1e681ae3cb
commit
f4205a288d
17
sync.run
17
sync.run
@ -27,18 +27,33 @@ if [[ ! -d $MIRROR_DIR ]]; then
|
|||||||
chown ipfs:ipfs $MIRROR_DIR
|
chown ipfs:ipfs $MIRROR_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d /etc/debmirror/gnupg ]]; then
|
||||||
|
mkdir -p /etc/debmirror/gnupg
|
||||||
|
chown ipfs:ipfs /etc/debmirror/gnupg
|
||||||
|
fi
|
||||||
|
|
||||||
chpst -u ipfs /bin/bash << '__EOF__'
|
chpst -u ipfs /bin/bash << '__EOF__'
|
||||||
|
|
||||||
export IPFS=/usr/local/bin/ipfs
|
export IPFS=/usr/local/bin/ipfs
|
||||||
export HOME=/home/ipfs
|
export HOME=/home/ipfs
|
||||||
export IPFS_FD_MAX=4096
|
export IPFS_FD_MAX=4096
|
||||||
|
|
||||||
|
export GNUPGHOME=/etc/debmirror/gnupg
|
||||||
|
|
||||||
|
gpg \
|
||||||
|
--keyring $GNUPGHOME/trustedkeys.kbx --no-default-keyring \
|
||||||
|
--import /usr/share/keyrings/ubuntu-archive-keyring.gpg \
|
||||||
|
|
||||||
|
gpg \
|
||||||
|
--keyring $GNUPGHOME/trustedkeys.kbx --no-default-keyring \
|
||||||
|
--recv-key 40976EAF437D05B5
|
||||||
|
|
||||||
$IPFS config --json Experimental.FilestoreEnabled true
|
$IPFS config --json Experimental.FilestoreEnabled true
|
||||||
|
|
||||||
echo "Synchronizing with the main Ubuntu mirror."
|
echo "Synchronizing with the main Ubuntu mirror."
|
||||||
|
|
||||||
debmirror \
|
debmirror \
|
||||||
--keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg \
|
--keyring $GNUPGHOME/trustedkeys.kbx \
|
||||||
-a ${MIRROR_ARCHITECTURES:-amd64} \
|
-a ${MIRROR_ARCHITECTURES:-amd64} \
|
||||||
--no-source \
|
--no-source \
|
||||||
-s ${MIRROR_CATEGORIES:-main,universe,multiverse,restricted} \
|
-s ${MIRROR_CATEGORIES:-main,universe,multiverse,restricted} \
|
||||||
|
Loading…
Reference in New Issue
Block a user