From 9a507db2cba20474fa8a93bc25cfbcf02ca941c6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 3 Apr 2018 17:31:50 +0100 Subject: [PATCH] pakfire: Store key material in own directory Signed-off-by: Michael Tremer --- src/initscripts/system/pakfire | 2 ++ src/pakfire/pakfire | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/initscripts/system/pakfire b/src/initscripts/system/pakfire index 43befc7969..d59daabce7 100644 --- a/src/initscripts/system/pakfire +++ b/src/initscripts/system/pakfire @@ -9,6 +9,8 @@ . /etc/sysconfig/rc . ${rc_functions} +export GNUPGHOME="/opt/pakfire/etc/.gnupg" + case "${1}" in start) boot_mesg "Setting up Pakfire Package Manager..." diff --git a/src/pakfire/pakfire b/src/pakfire/pakfire index 202c1e5a14..dfba915568 100644 --- a/src/pakfire/pakfire +++ b/src/pakfire/pakfire @@ -24,6 +24,9 @@ delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)}; $< = $>; + # Store keys here + $ENV{"GNUPGHOME"} = "/opt/pakfire/etc/.gnupg"; + require "/opt/pakfire/lib/functions.pl"; my $interactive = 1; -- 2.39.5