mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-04-29 15:38:00 +00:00
Modifed node version check (#178)
This commit is contained in:
@@ -44,9 +44,10 @@ if ! command -v node &>/dev/null; then
|
||||
curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
||||
apt-get -y install nodejs
|
||||
else
|
||||
version=$(node -v)
|
||||
if [[ ! $version =~ v16\..* ]]; then
|
||||
echo "Found node $version, recommended node v16.x.x"
|
||||
version=$(node -v | cut -d '.' -f1)
|
||||
version=${version:1}
|
||||
if [[ $version -lt 16 ]]; then
|
||||
echo "Found node $version, recommended node v16.x.x or later"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -125,8 +125,9 @@ function GB() {
|
||||
function check_prereq() {
|
||||
# Check if node js installed.
|
||||
if command -v node &>/dev/null; then
|
||||
version=$(node -v)
|
||||
if [[ ! $version =~ v16\..* ]]; then
|
||||
version=$(node -v | cut -d '.' -f1)
|
||||
version=${version:1}
|
||||
if [[ $version -lt 16 ]]; then
|
||||
echo "$evernode requires NodeJs 16.x or later. You system has NodeJs $version installed. Either remove the NodeJs installation or upgrade to NodeJs 16.x."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -24,7 +24,7 @@ appenv = {
|
||||
ACQUIRE_LEASE_WAIT_TIMEOUT_THRESHOLD: 0.4,
|
||||
ORPHAN_PRUNE_SCHEDULER_INTERVAL_HOURS: 4,
|
||||
SASHI_CLI_PATH: appenv.IS_DEV_MODE ? "../build/sashi" : "/usr/bin/sashi",
|
||||
MB_VERSION: '0.5.9',
|
||||
MB_VERSION: '0.5.10',
|
||||
TOS_HASH: '757A0237B44D8B2BBB04AE2BAD5813858E0AECD2F0B217075E27E0630BA74314' // This is the sha256 hash of TOS text.
|
||||
}
|
||||
Object.freeze(appenv);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
namespace version
|
||||
{
|
||||
// Sashimono agent version. Written to new configs.
|
||||
constexpr const char *AGENT_VERSION = "0.5.9";
|
||||
constexpr const char *AGENT_VERSION = "0.5.10";
|
||||
|
||||
// Minimum compatible config version (this will be used to validate configs).
|
||||
constexpr const char *MIN_CONFIG_VERSION = "0.5.0";
|
||||
|
||||
Reference in New Issue
Block a user