Fix bug: Impossible to change some settings
This commit is contained in:
@@ -215,10 +215,20 @@ fi
|
|||||||
" > /etc/profile.d/btcpay-env.sh
|
" > /etc/profile.d/btcpay-env.sh
|
||||||
chmod +x /etc/profile.d/btcpay-env.sh
|
chmod +x /etc/profile.d/btcpay-env.sh
|
||||||
|
|
||||||
. /etc/profile.d/btcpay-env.sh
|
|
||||||
|
|
||||||
echo -e "BTCPay Server environment variables successfully saved in /etc/profile.d/btcpay-env.sh\n"
|
echo -e "BTCPay Server environment variables successfully saved in /etc/profile.d/btcpay-env.sh\n"
|
||||||
|
|
||||||
|
# Set .env file
|
||||||
|
touch $BTCPAY_ENV_FILE
|
||||||
|
echo "
|
||||||
|
BTCPAY_HOST=$BTCPAY_HOST
|
||||||
|
ACME_CA_URI=$ACME_CA_URI
|
||||||
|
NBITCOIN_NETWORK=$NBITCOIN_NETWORK
|
||||||
|
LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
||||||
|
LIGHTNING_ALIAS=$LIGHTNING_ALIAS" > $BTCPAY_ENV_FILE
|
||||||
|
echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n"
|
||||||
|
|
||||||
|
. /etc/profile.d/btcpay-env.sh
|
||||||
|
|
||||||
if ! [ -x "$(command -v docker)" ] || ! [ -x "$(command -v docker-compose)" ]; then
|
if ! [ -x "$(command -v docker)" ] || ! [ -x "$(command -v docker-compose)" ]; then
|
||||||
apt-get update 2>error
|
apt-get update 2>error
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
@@ -256,16 +266,6 @@ else
|
|||||||
echo -e "docker-compose is already installed\n"
|
echo -e "docker-compose is already installed\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set .env file
|
|
||||||
touch $BTCPAY_ENV_FILE
|
|
||||||
echo "
|
|
||||||
BTCPAY_HOST=$BTCPAY_HOST
|
|
||||||
ACME_CA_URI=$ACME_CA_URI
|
|
||||||
NBITCOIN_NETWORK=$NBITCOIN_NETWORK
|
|
||||||
LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
|
||||||
LIGHTNING_ALIAS=$LIGHTNING_ALIAS" > $BTCPAY_ENV_FILE
|
|
||||||
echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n"
|
|
||||||
|
|
||||||
# Generate the docker compose in BTCPAY_DOCKER_COMPOSE
|
# Generate the docker compose in BTCPAY_DOCKER_COMPOSE
|
||||||
. ./build.sh
|
. ./build.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user