Mac os support (#156)
* 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
This commit is contained in:
committed by
Nicolas Dorier
parent
bf4f104f59
commit
dc5cdf27a9
11
btcpay-up.sh
11
btcpay-up.sh
@@ -1,6 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/profile.d/btcpay-env.sh
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user