#!/bin/sh # Post-install script for i2p-python .deb set -e # Create i2p system user if it doesn't exist if ! getent passwd i2p >/dev/null 2>&1; then useradd --system --home-dir /var/lib/i2p-python \ --shell /usr/sbin/nologin --create-home i2p fi # Set ownership chown -R i2p:i2p /var/lib/i2p-python # Install ufw profile if ufw is available if command -v ufw >/dev/null 2>&1 && [ -f /etc/i2p-python/ufw-i2p ]; then cp /etc/i2p-python/ufw-i2p /etc/ufw/applications.d/i2p fi echo "i2p-python installed. Start with: systemctl enable --now i2p-router"