This commit is contained in:
rootzoll 2022-07-01 11:11:06 +02:00
commit 12c56c38fa
2 changed files with 5 additions and 1 deletions

View File

@ -178,6 +178,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
if [ "$(cat ${CLCONF} | grep -c "^rpc-file-mode=0660")" -eq 0 ]; then
echo "rpc-file-mode=0660" | tee -a ${CLCONF}
fi
/usr/sbin/usermod --append --groups bitcoin blitzapi
cd /home/blitzapi || exit 1
# git clone https://github.com/fusion44/blitz_api.git /home/blitzapi/blitz_api

View File

@ -95,7 +95,10 @@ set -e
export NODE_OPTIONS="--no-deprecation"
# load config
set -a; source /mnt/hdd/app-data/stacking-sats-kraken/.env; set +a
env="/mnt/hdd/app-data/stacking-sats-kraken/.env"
set -a; . ${env}; set +a
# alternative config
test -f "${env}-"${2} && { set -a; . "${env}-"${2}; set +a; }
# switch directory
cd $(cd `dirname $0` && pwd)