-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Ensure we are being ran as root | ||
if [ $(id -u) -ne 0 ]; then | ||
echo "This script must be ran as root" | ||
exit 1 | ||
fi | ||
|
||
# For upgrades and sanity check, remove any existing i2p.list file | ||
rm -f /etc/apt/sources.list.d/i2p.list | ||
|
||
# Compile the i2p ppa | ||
echo "deb http://deb.i2p2.no/ unstable main" > /etc/apt/sources.list.d/i2p.list # Default config reads repos from sources.list.d | ||
wget https://geti2p.net/_static/i2p-debian-repo.key.asc -O /tmp/i2p-debian-repo.key.asc # Get the latest i2p repo pubkey | ||
apt-key add /tmp/i2p-debian-repo.key.asc # Import the key | ||
rm /tmp/i2p-debian-repo.key.asc # delete the temp key | ||
apt-get update # Update repos | ||
|
||
if [[ -n $(cat /etc/os-release |grep batik) ]] | ||
then | ||
apt-get install libservlet3.0-java | ||
wget http://ftp.us.debian.org/debian/pool/main/j/jetty8/libjetty8-java_8.1.16-4_all.deb | ||
dpkg -i libjetty8-java_8.1.16-4_all.deb # This should succeed without error | ||
apt-get install libecj-java libgetopt-java libservlet3.0-java glassfish-javaee ttf-dejavu i2p i2p-router libjbigi-jni #installs i2p and other dependencies | ||
apt-get -f install # resolves anything else in a broken state | ||
fi | ||
|
||
apt-get install -y i2p-keyring #this will ensure you get updates to the repository's GPG key | ||
apt-get install -y secure-delete tor i2p # install dependencies, just in case | ||
|
||
# Configure and install the .deb | ||
dpkg -i batik-anonsurf.deb || (apt-get -f install && dpkg -i batik-anonsurf.deb) # this will automatically install the required packages | ||
|
||
exit 0 |