mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00

* Mac OS support * Mac OS support * Improved output + fixed docker command not being linked * Improved docker install * Added manual installation message if needed * Fixed issue with if … fi nesting + using double [[ ]] now as better practise * Fixed indentation + using double [[ ]] everywhere * More [[ ]] changes * Fixed issue due to bad merge * Empty if statement gives error * Cannot set logging in /etc/docker/daemon.json for Mac * Better quoting of $BASH_PROFILE_SCRIPT * Removed comment + Added “elif” * Added quotes * Added quotes * Removed TODO, BTCPay server works after reboot and all commands run fine. * Fixed broken detection if line is already in $HOME/.bash_profile
16 lines
273 B
Bash
Executable File
16 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
# Mac OS
|
|
BASH_PROFILE_SCRIPT="$HOME/btcpay-env.sh"
|
|
|
|
else
|
|
# Linux
|
|
BASH_PROFILE_SCRIPT="/etc/profile.d/btcpay-env.sh"
|
|
fi
|
|
|
|
. "$BASH_PROFILE_SCRIPT"
|
|
|
|
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker"
|
|
. helpers.sh
|
|
btcpay_down |