-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxchain-node.sh
More file actions
executable file
·28 lines (27 loc) · 1.08 KB
/
Copy pathxchain-node.sh
File metadata and controls
executable file
·28 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
#*********************************************************************
#
# Copyright © 2025-2026 Dankest, LLC
# Based on XChain Platform by Dankest, LLC - https://dankest.llc
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# This file is part of XChain Platform. Licensed under the GNU Affero
# General Public License v3.0 or later; see LICENSE.md. A commercial
# license (without AGPL source-disclosure terms) is available -
# contact legal@dankest.llc.
#
#*********************************************************************
#
# xchain-node installer script
#
# Install via :
# sudo ln -s ~/xchain-node/xchain-node.sh /usr/local/bin/xchain-node
#
#######################################################################
# Resolve to the checkout this script lives in (following the
# /usr/local/bin symlink), so the CLI works from any working directory:
# cron jobs and scripts invoke `xchain-node` without cd-ing first, and a
# bare `node src/index.js` resolves against their cwd and dies.
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
/usr/bin/env node src/index.js "$@"