pakfire: Store key material in own directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-04-03 17:31:50 +01:00
parent 4d888e6854
commit 9a507db2cb
2 changed files with 5 additions and 0 deletions

View File

@@ -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..."

View File

@@ -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;