blob: 95f51b5140b28c696ebda38c39493b70043f2ae2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import_gpg () {
# Install trust for all users - this is dumb but gpg wants to WRITE tp that directory, so
# we can't just use a public dir owned by root with 0755 permissions (which would be OK security-wise,
# as we never sign anything but just want to verify)
local PWUSER
local KEY="/tmp/bwlp-blubbediblubb.asc"
cp "${BASEDIR}/static_files/gpg-key.asc" "$KEY"
chmod 0444 "$KEY"
for PWUSER in taskmanager root; do
sudo -u "$PWUSER" gpg --import "$KEY" || perror "Could not import gpg key for $PWUSER"
done
}
|