You need to sign in or sign up before continuing.
postinst 514 Bytes
Newer Older
isaagar's avatar
isaagar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/sh

# make sure apt knows about the new keys
#if [ -x /usr/bin/apt-key ]; then
#    /usr/bin/apt-key update
#fi

# the keyring in /var that gets fetched by apt-key net-update
# if it does not yet exist, copy it to avoid uneeded net copy
KEYRINGDIR="/var/lib/apt/keyrings"
KEYRING="${KEYRINGDIR}/hamara-archive-keyring.gpg"

if ! test -d $KEYRINGDIR; then
     mkdir -m 755 -p $KEYRINGDIR
fi

if ! test -f $KEYRING; then
     cp /usr/share/keyrings/hamara-archive-keyring.gpg $KEYRING
     touch $KEYRING
fi