Skip to content

Commit

Permalink
Update postinst script
Browse files Browse the repository at this point in the history
(cherry picked from commit a1c6551)
  • Loading branch information
Toktar committed Nov 13, 2021
1 parent 8a2d47e commit 336474c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_tools/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 336474c

Please sign in to comment.