From 8f44cc2affd88dc54d935d64e0bc33e7b592ff73 Mon Sep 17 00:00:00 2001 From: zenodeapp Date: Wed, 17 Jan 2024 22:34:48 +0100 Subject: [PATCH] Variables fix --- utils/.install/.versionmap | 2 +- utils/.install/_variables.sh.example | 2 +- utils/_variables.sh | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/utils/.install/.versionmap b/utils/.install/.versionmap index 4187d12ba0..bbf9622e59 100644 --- a/utils/.install/.versionmap +++ b/utils/.install/.versionmap @@ -1,5 +1,5 @@ .install/updater.sh v1.0.0 r -.install/_variables.sh.example v1.0.0 a +.install/_variables.sh.example v1.0.1 a backup/create.sh v1.0.0 u backup/README.md v1.0.0 d fetch/peers.sh v1.0.0 u diff --git a/utils/.install/_variables.sh.example b/utils/.install/_variables.sh.example index b48ab9d338..c3ef7e57e8 100644 --- a/utils/.install/_variables.sh.example +++ b/utils/.install/_variables.sh.example @@ -24,5 +24,5 @@ RPC_SERVERS_URL=$FETCH_URL/rpc_servers.txt IP_INFO_PROVIDER=ipinfo.io/ip # /service module variables. -SERVICE_DIR=$REPO_ROOT/services # Where the service file is located, $REPO_ROOT is not defined in this example. +SERVICE_DIR=$(cd "$(dirname "$0")"/../.. && pwd)/services # Where the service file is located, this example points two directories back based on /service/* (e.g. /service/install.sh/../../services). SERVICE_FILE=$BINARY_NAME.service diff --git a/utils/_variables.sh b/utils/_variables.sh index 18c0fe4337..ba3881e27e 100644 --- a/utils/_variables.sh +++ b/utils/_variables.sh @@ -1,8 +1,5 @@ #!/bin/bash -# Root of the current repository -REPO_ROOT=$(cd "$(dirname "$0")"/.. && pwd) - # Variables for all modules CHAIN_ID=genesis_29-2 BINARY_NAME=genesisd @@ -22,5 +19,5 @@ RPC_SERVERS_URL=$FETCH_URL/rpc_servers.txt IP_INFO_PROVIDER=ipinfo.io/ip # /service module variables. -SERVICE_DIR=$REPO_ROOT/services +SERVICE_DIR=$(cd "$(dirname "$0")"/../.. && pwd)/services SERVICE_FILE=$BINARY_NAME.service