Skip to content

Commit

Permalink
Reform
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Dec 26, 2024
1 parent 0959257 commit 89ca338
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deploy/setup
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ mkdir -p \
/etc/systemd/system/bitcoind.service.d \
/etc/systemd/system/ord.service.d

override=/etc/systemd/system/ord.service.d/override.conf
OVERRIDE=/etc/systemd/system/ord.service.d/override.conf

echo "[Service]" > $override
printf "Environment=CHAIN=%s\n" $CHAIN > $override
printf "Environment=CSP_ORIGIN=%s\n" $CSP_ORIGIN > $override
echo '[Service]' > $OVERRIDE
echo "Environment=CHAIN=$CHAIN" > $OVERRIDE
echo "Environment=CSP_ORIGIN=$CSP_ORIGIN" > $OVERRIDE

if [[ $chain == main ]]; then
printf "Environment=ORD_SERVER_DISABLE_JSON_API=true\n" > $override
if [[ $CHAIN == main ]]; then
echo Environment=ORD_SERVER_DISABLE_JSON_API=true > $OVERRIDE
fi

cp $override /etc/systemd/system/bitcoind.service.d/override.conf
Expand Down

0 comments on commit 89ca338

Please sign in to comment.