mac fixes
This commit is contained in:
parent
471464905f
commit
67425e6c22
2 changed files with 10 additions and 1 deletions
|
|
@ -89,6 +89,15 @@ install_lightning_pub() {
|
||||||
upgrade_status=0
|
upgrade_status=0
|
||||||
mkdir -p "$(dirname "$INSTALL_DIR")"
|
mkdir -p "$(dirname "$INSTALL_DIR")"
|
||||||
mv "$EXTRACT_DIR" "$INSTALL_DIR"
|
mv "$EXTRACT_DIR" "$INSTALL_DIR"
|
||||||
|
|
||||||
|
# Create .env with OS-specific LND paths
|
||||||
|
if [ "$OS" = "Mac" ]; then
|
||||||
|
cat > "$INSTALL_DIR/.env" <<EOF
|
||||||
|
LND_ADDRESS=127.0.0.1:10009
|
||||||
|
LND_CERT_PATH=$HOME/Library/Application Support/Lnd/tls.cert
|
||||||
|
LND_MACAROON_PATH=$HOME/Library/Application Support/Lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ install_nodejs_mac() {
|
||||||
# Check if node exists and meets minimum version
|
# Check if node exists and meets minimum version
|
||||||
if command -v node &> /dev/null; then
|
if command -v node &> /dev/null; then
|
||||||
NODE_VERSION=$(node -v | sed 's/v//')
|
NODE_VERSION=$(node -v | sed 's/v//')
|
||||||
if [ "$(printf '%s\n' "$MINIMUM_VERSION" "$NODE_VERSION" | sort -V | head -n1)" = "$MINIMUM_VERSION" ]; then
|
if [ "$(printf '%s\n' "$MINIMUM_VERSION" "$NODE_VERSION" | sort -V | awk 'NR==1')" = "$MINIMUM_VERSION" ]; then
|
||||||
log "Node.js is already installed and meets the minimum version requirement."
|
log "Node.js is already installed and meets the minimum version requirement."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue