btcpayserver-docker/btcpay-down.sh
Wouter Samaey dc5cdf27a9 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
2019-06-24 17:21:05 +09:00

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