1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-08 18:47:52 +00:00
i2pd/contrib/docker/entrypoint.sh
2020-12-13 17:31:53 +00:00

14 lines
277 B
Bash

#!/bin/sh
COMMAND=/usr/local/bin/i2pd
# To make ports exposeable
# Note: $DATA_DIR is defined in /etc/profile
if [ "$1" = "--help" ]; then
set -- $COMMAND --help
else
ln -s /i2pd_certificates "$DATA_DIR"/certificates
set -- $COMMAND $DEFAULT_ARGS $@
fi
exec "$@"