Skip to content
Snippets Groups Projects
Unverified Commit 3f26e9a3 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Create GNUPGHOME if missing, set env var

parent 98f2f8cc
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -12,6 +12,16 @@ then
chown obsrun:obsrun -R /srv/obs
fi
if [ ! -d /srv/obs/gnupg ]
then
echo "GnuPG homedir is missing!"
mkdir -m 0700 /srv/obs/gnupg
chown obsrun:obsrun /srv/obs/gnupg
gpg --list-keys --homedir /srv/obs/gnupg
fi
export GNUGPHOME=/srv/obs/gnupg
if [ ! -f /etc/obs/BSConfig.pm ]
then
echo "OBS backend configuration not found, starting from scratch"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment