mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
594 B
17 lines
594 B
8 years ago
|
#!/bin/sh
|
||
|
COMMAND=/usr/local/bin/i2pd
|
||
|
# To make ports exposeable
|
||
|
# Note: $DATA_DIR is defined in /etc/profile
|
||
|
DEFAULT_ARGS=" --datadir=$DATA_DIR --reseed.verify=true --upnp.enabled=false --http.enabled=true --http.address=0.0.0.0 --httpproxy.enabled=true --httpproxy.address=0.0.0.0 --socksproxy.enabled=true --socksproxy.address=0.0.0.0 --sam.enabled=true --sam.address=0.0.0.0"
|
||
|
|
||
|
if [ "$1" = "--help" ]; then
|
||
|
set -- $COMMAND --help
|
||
|
else
|
||
|
# Create datadir
|
||
|
mkdir -p "$DATA_DIR"
|
||
|
ln -s /i2pd_certificates "$DATA_DIR"/certificates
|
||
|
set -- $COMMAND $DEFAULT_ARGS $@
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|