Files
bpfire/src/initscripts/system/pakfire
Michael Tremer 9a507db2cb pakfire: Store key material in own directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-04-03 17:31:50 +01:00

31 lines
672 B
Bash

#!/bin/sh
########################################################################
# Begin $rc_base/init.d/pakfire
#
# Description : Imports the keyring to make Pakfire operational
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
export GNUPGHOME="/opt/pakfire/etc/.gnupg"
case "${1}" in
start)
boot_mesg "Setting up Pakfire Package Manager..."
gpg --import /opt/pakfire/pakfire-2018.key &>/dev/null
evaluate_retval
# Try to import the old key, too
gpg --import /opt/pakfire/pakfire-2007.key &>/dev/null
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
# End $rc_base/init.d/pakfire