mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
Merge branch 'v1.6' of https://github.com/rootzoll/raspiblitz into v1.6
This commit is contained in:
@@ -61,6 +61,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# check latest version:
|
# check latest version:
|
||||||
# https://github.com/alexbosworth/balanceofsatoshis/blob/master/package.json#L70
|
# https://github.com/alexbosworth/balanceofsatoshis/blob/master/package.json#L70
|
||||||
sudo -u bos npm install -g balanceofsatoshis@5.41.0
|
sudo -u bos npm install -g balanceofsatoshis@5.41.0
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# setting value in raspi blitz config
|
# setting value in raspi blitz config
|
||||||
sudo sed -i "s/^bos=.*/bos=on/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^bos=.*/bos=on/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
@@ -119,6 +119,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
cd btc-rpc-explorer
|
cd btc-rpc-explorer
|
||||||
sudo -u btcrpcexplorer git reset --hard v2.0.0
|
sudo -u btcrpcexplorer git reset --hard v2.0.0
|
||||||
sudo -u btcrpcexplorer npm install
|
sudo -u btcrpcexplorer npm install
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# prepare .env file
|
# prepare .env file
|
||||||
echo "# getting RPC credentials from the ${network}.conf"
|
echo "# getting RPC credentials from the ${network}.conf"
|
||||||
|
@@ -46,6 +46,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
sudo -u $USERNAME rm v$APP_VERSION.tar.gz
|
sudo -u $USERNAME rm v$APP_VERSION.tar.gz
|
||||||
cd kindle-display/server
|
cd kindle-display/server
|
||||||
sudo -u $USERNAME npm install
|
sudo -u $USERNAME npm install
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# setup kindle-display config
|
# setup kindle-display config
|
||||||
RPC_USER=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcuser | cut -c 9-)
|
RPC_USER=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcuser | cut -c 9-)
|
||||||
|
@@ -104,17 +104,15 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
echo "*** Run: npm install ***"
|
echo "*** Run: npm install ***"
|
||||||
export NG_CLI_ANALYTICS=false
|
export NG_CLI_ANALYTICS=false
|
||||||
sudo -u rtl npm install --only=prod
|
sudo -u rtl npm install --only=prod
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK - RTL install looks good"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
# check if node_modules exist now
|
|
||||||
if [ -d "/home/rtl/RTL/node_modules" ]; then
|
|
||||||
echo "OK - RTL install looks good"
|
|
||||||
else
|
|
||||||
echo "FAIL - npm install did not run correctly"
|
|
||||||
echo "ABORT - RTL install"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# prepare RTL-Config.json file
|
# prepare RTL-Config.json file
|
||||||
echo "*** RTL.conf ***"
|
echo "*** RTL.conf ***"
|
||||||
|
@@ -38,6 +38,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
sudo -u $USERNAME rm v$SCRIPT_VERSION.tar.gz
|
sudo -u $USERNAME rm v$SCRIPT_VERSION.tar.gz
|
||||||
cd stacking-sats-kraken
|
cd stacking-sats-kraken
|
||||||
sudo -u $USERNAME npm install
|
sudo -u $USERNAME npm install
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# setup stacking config
|
# setup stacking config
|
||||||
sudo mkdir -p $APP_DATA_DIR
|
sudo mkdir -p $APP_DATA_DIR
|
||||||
|
@@ -84,6 +84,11 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
sudo -u thunderhub git reset --hard v0.8.12
|
sudo -u thunderhub git reset --hard v0.8.12
|
||||||
echo "Running npm install and run build..."
|
echo "Running npm install and run build..."
|
||||||
sudo -u thunderhub npm install
|
sudo -u thunderhub npm install
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
sudo -u thunderhub npm run build
|
sudo -u thunderhub npm run build
|
||||||
|
|
||||||
###############
|
###############
|
||||||
@@ -293,6 +298,10 @@ if [ "$1" = "update" ]; then
|
|||||||
# install deps
|
# install deps
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
sudo -u thunderhub npm install --quiet
|
sudo -u thunderhub npm install --quiet
|
||||||
|
if ! [ $? -eq 0 ]; then
|
||||||
|
echo "FAIL - npm install did not run correctly, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# build nextjs
|
# build nextjs
|
||||||
echo "Building application..."
|
echo "Building application..."
|
||||||
|
Reference in New Issue
Block a user