boostrap keys dir
This commit is contained in:
parent
e075010ec1
commit
db0d42a628
|
@ -29,6 +29,7 @@ perl -pi -e "s,#COSMOS_REPO_MODELS=.*,COSMOS_REPO_MODELS=\"\\\$COSMOS_REPO/globa
|
||||||
perl -pi -e 's,#COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=.*,COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN="eduid-cosmos*",' /etc/cosmos/cosmos.conf
|
perl -pi -e 's,#COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=.*,COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN="eduid-cosmos*",' /etc/cosmos/cosmos.conf
|
||||||
|
|
||||||
COSMOS_BASE=/var/cache/cosmos /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust
|
COSMOS_BASE=/var/cache/cosmos /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust
|
||||||
|
COSMOS_KEYS=/var/cache/cosmos/repo/global/overlay/etc/cosmos/keys
|
||||||
|
|
||||||
(date; nohup cosmos -v update && nohup cosmos -v apply; date) > /var/log/cosmos.log 2>&1
|
(date; nohup cosmos -v update && nohup cosmos -v apply; date) > /var/log/cosmos.log 2>&1
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for k in /etc/cosmos/keys/*.pub; do
|
if -z "$COSMOS_KEYS"; then
|
||||||
|
COSMOS_KEYS=/etc/cosmos/keys
|
||||||
|
fi
|
||||||
|
|
||||||
|
for k in $COSMOS_KEYS/*.pub; do
|
||||||
fp=`cosmos gpg --with-colons --with-fingerprint < $k| awk -F: '$1 == "pub" {print $5}'`
|
fp=`cosmos gpg --with-colons --with-fingerprint < $k| awk -F: '$1 == "pub" {print $5}'`
|
||||||
cosmos gpg --with-colons --fingerprint | grep -q ":$fp:" || cosmos gpg --import < $k
|
cosmos gpg --with-colons --fingerprint | grep -q ":$fp:" || cosmos gpg --import < $k
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue