From 336474cb77977aae4ff7852c7b56697fd0be5092 Mon Sep 17 00:00:00 2001 From: toktar Date: Sat, 13 Nov 2021 21:12:15 +0300 Subject: [PATCH] Update postinst script (cherry picked from commit a1c6551e1d7e2e3e6c8efbb7b03ced0a90191749) --- build_tools/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_tools/postinst b/build_tools/postinst index a1937883e..bb0c152a7 100644 --- a/build_tools/postinst +++ b/build_tools/postinst @@ -5,9 +5,10 @@ CHEQD_USER_NAME=cheqd # Home directory location can be passed when running dpkg -i if [ -z ${CHEQD_HOME_DIR+x} ]; then CHEQD_HOME_DIR=/home/${CHEQD_USER_NAME} - CHEQD_ROOT_DIR=${CHEQD_HOME_DIR}/.cheqdnode fi +CHEQD_ROOT_DIR=${CHEQD_HOME_DIR}/.cheqdnode + # If there is an argument then assume using as binary + script instead of apt if [ -n "$1" ] && [ -f "$1" ] ; then cp "$1" /usr/bin/