Skip to content

Commit

Permalink
Merge pull request #4151 from freedomofpress/import_okay
Browse files Browse the repository at this point in the history
Import okay
  • Loading branch information
emkll authored Feb 18, 2019
2 parents 6b007ba + 71ac0eb commit 03b4a07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install_files/securedrop-app-code/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ case "$1" in
echo allow-loopback-pinentry > /var/lib/securedrop/keys/gpg-agent.conf
fi

# Migrate private keyring to gpg2.1 if needed
if [ ! -d "/var/lib/securedrop/keys/private-keys-v1.d" ]; then
# Then we should migrate the keyring
gpg2 --homedir=/var/lib/securedrop/keys --batch --import < /var/lib/securedrop/keys/secring.gpg
fi

chown -R www-data:www-data /var/lib/securedrop /var/www/securedrop

pip install --no-index --find-links=/var/securedrop/wheelhouse --upgrade \
Expand Down

0 comments on commit 03b4a07

Please sign in to comment.