A Python port of the Invisible Internet Project (I2P)
at main 19 lines 572 B view raw
1#!/bin/sh 2# Post-install script for i2p-python .deb 3set -e 4 5# Create i2p system user if it doesn't exist 6if ! getent passwd i2p >/dev/null 2>&1; then 7 useradd --system --home-dir /var/lib/i2p-python \ 8 --shell /usr/sbin/nologin --create-home i2p 9fi 10 11# Set ownership 12chown -R i2p:i2p /var/lib/i2p-python 13 14# Install ufw profile if ufw is available 15if command -v ufw >/dev/null 2>&1 && [ -f /etc/i2p-python/ufw-i2p ]; then 16 cp /etc/i2p-python/ufw-i2p /etc/ufw/applications.d/i2p 17fi 18 19echo "i2p-python installed. Start with: systemctl enable --now i2p-router"