mirror of
https://github.com/PurpleI2P/pyseeder
synced 2025-01-29 16:14:16 +00:00
create default netDb dir
This commit is contained in:
parent
a60122a165
commit
fba6eb4f3a
@ -16,6 +16,8 @@ RUN apk --no-cache add python3 py3-pip build-base git openssl-dev musl-dev pytho
|
||||
# 2. Adding required libraries to run i2pd to ensure it will run.
|
||||
RUN apk --no-cache add python3 openssl
|
||||
|
||||
RUN mkdir /netDb
|
||||
|
||||
VOLUME "$DATA_DIR"
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
@ -12,11 +12,14 @@ else
|
||||
PRIVKEY_FILE="$DATA_DIR/data/private_key.pem"
|
||||
CERT_FILE=` echo $DATA_DIR/data/$SIGNER_ID.crt | sed 's/@/_at_/' `
|
||||
RESEED_FILE="$DATA_DIR/output/i2pseeds.su3"
|
||||
I2PD_DIR="/i2pd_data"
|
||||
NETDB_DIR="/i2pd_data/netDb"
|
||||
if [ ! -d $NETDB_DIR ]; then
|
||||
NETDB_DIR="/netDb"
|
||||
fi
|
||||
|
||||
$COMMAND keygen --signer-id $SIGNER_ID --no-encrypt \
|
||||
--private-key $PRIVKEY_FILE --cert $CERT_FILE
|
||||
$COMMAND reseed --netdb $I2PD_DIR/netDb --signer-id $SIGNER_ID --no-encrypt \
|
||||
$COMMAND reseed --netdb $NETDB_DIR --signer-id $SIGNER_ID --no-encrypt \
|
||||
--private-key $PRIVKEY_FILE --outfile $RESEED_FILE
|
||||
$COMMAND serve --private-key $PRIVKEY_FILE --cert $CERT_FILE --file $RESEED_FILE
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user