|
|
@ -14,11 +14,12 @@ export BTCPAY_HOST="$NEW_HOST" |
|
|
|
export ACME_CA_URI="https://acme-v01.api.letsencrypt.org/directory" |
|
|
|
|
|
|
|
# Modify environment file |
|
|
|
sed -i '/^BTCPAY_HOST/d' $BTCPAY_ENV_FILE |
|
|
|
sed -i '/^ACME_CA_URI/d' $BTCPAY_ENV_FILE |
|
|
|
echo "BTCPAY_HOST=$BTCPAY_HOST" >> $BTCPAY_ENV_FILE |
|
|
|
echo "ACME_CA_URI=$ACME_CA_URI" >> $BTCPAY_ENV_FILE |
|
|
|
sed -i '/^BTCPAY_HOST/d' "$BTCPAY_ENV_FILE" |
|
|
|
sed -i '/^ACME_CA_URI/d' "$BTCPAY_ENV_FILE" |
|
|
|
echo "BTCPAY_HOST=$BTCPAY_HOST" >> "$BTCPAY_ENV_FILE" |
|
|
|
echo "ACME_CA_URI=$ACME_CA_URI" >> "$BTCPAY_ENV_FILE" |
|
|
|
|
|
|
|
sleep 1 |
|
|
|
cd "`dirname $BTCPAY_ENV_FILE`" |
|
|
|
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d |
|
|
|
fi |
|
|
|