Skip to content

Commit

Permalink
check if gnupg is installed, force install if not
Browse files Browse the repository at this point in the history
  • Loading branch information
Und3rf10w authored Dec 21, 2023
1 parent fb1a6bb commit 9f1bd75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
kali-job:
test-install:
runs-on: ubuntu-latest
container:
image: kalilinux/kali-rolling:latest # Use the correct tag
Expand Down
6 changes: 6 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ fi
# For upgrades and sanity check, remove any existing i2p.list file
rm -f /etc/apt/sources.list.d/i2p.list

# Install gnupg if not installed
if ! command -v gpg; then
apt-get update
apt-get install -y gnupg
fi

# Compile the i2p ppa
echo "deb https://ppa.launchpadcontent.net/i2p-maintainers/i2p/ubuntu noble main" > /etc/apt/sources.list.d/i2p.list # Default config reads repos from sources.list.d
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB9660B9EB2CC88B # Add i2p maintainer keys # TODO: Is there a more universal way to do this?
Expand Down

0 comments on commit 9f1bd75

Please sign in to comment.