Fix Warden Terminal install
This commit is contained in:
parent
b7200ece8f
commit
6ff829f445
|
@ -939,21 +939,21 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Upgrade WARden
|
# Upgrade WARden
|
||||||
if should_install_app "warden" ; then
|
if should_install_app "wardenterminal" ; then
|
||||||
WARDEN_UPGRADE_URL=https://github.com/pxsocs/warden/archive/refs/tags/$WARDEN_VERSION.tar.gz
|
WARDENTERMINAL_UPGRADE_URL=https://github.com/pxsocs/warden_terminal/archive/$WARDENTERMINAL_VERSION.tar.gz
|
||||||
CURRENT=""
|
CURRENT=""
|
||||||
if [ -f $WARDEN_VERSION_FILE ]; then
|
if [ -f $WARDENTERMINAL_VERSION_FILE ]; then
|
||||||
CURRENT=$(cat $WARDEN_VERSION_FILE)
|
CURRENT=$(cat $WARDENTERMINAL_VERSION_FILE)
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$WARDEN_VERSION" ]; then
|
if [ "$CURRENT" != "$WARDENTERMINAL_VERSION" ]; then
|
||||||
cd /opt/mynode
|
cd /opt/mynode
|
||||||
rm -rf warden
|
rm -rf wardenterminal
|
||||||
|
|
||||||
sudo -u bitcoin wget $WARDEN_UPGRADE_URL -O warden.tar.gz
|
sudo -u bitcoin wget $WARDENTERMINAL_UPGRADE_URL -O wardenterminal.tar.gz
|
||||||
sudo -u bitcoin tar -xvf warden.tar.gz
|
sudo -u bitcoin tar -xvf wardenterminal.tar.gz
|
||||||
sudo -u bitcoin rm warden.tar.gz
|
sudo -u bitcoin rm wardenterminal.tar.gz
|
||||||
sudo -u bitcoin mv warden-* warden
|
sudo -u bitcoin mv warden_terminal-* wardenterminal
|
||||||
cd warden
|
cd wardenterminal
|
||||||
|
|
||||||
# Make venv
|
# Make venv
|
||||||
if [ ! -d env ]; then
|
if [ ! -d env ]; then
|
||||||
|
@ -963,7 +963,7 @@ if should_install_app "warden" ; then
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
echo $WARDEN_VERSION > $WARDEN_VERSION_FILE
|
echo $WARDENTERMINAL_VERSION > $WARDENTERMINAL_VERSION_FILE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -30,4 +30,4 @@ echo $SPHINXRELAY_VERSION > $SPHINXRELAY_LATEST_VERSION_FILE
|
||||||
echo $NETDATA_VERSION > $NETDATA_LATEST_VERSION_FILE
|
echo $NETDATA_VERSION > $NETDATA_LATEST_VERSION_FILE
|
||||||
echo $WEBSSH2_VERSION > $WEBSSH2_LATEST_VERSION_FILE
|
echo $WEBSSH2_VERSION > $WEBSSH2_LATEST_VERSION_FILE
|
||||||
echo $PYBLOCK_VERSION > $PYBLOCK_LATEST_VERSION_FILE
|
echo $PYBLOCK_VERSION > $PYBLOCK_LATEST_VERSION_FILE
|
||||||
echo $WARDEN_VERSION > $WARDEN_LATEST_VERSION_FILE
|
echo $WARDENTERMINAL_VERSION > $WARDENTERMINAL_LATEST_VERSION_FILE
|
|
@ -167,10 +167,10 @@ PYBLOCK_VERSION=$(get_app_version "$PYBLOCK_VERSION" "pyblock")
|
||||||
PYBLOCK_VERSION_FILE=/home/bitcoin/.mynode/pyblock_version
|
PYBLOCK_VERSION_FILE=/home/bitcoin/.mynode/pyblock_version
|
||||||
PYBLOCK_LATEST_VERSION_FILE=/home/bitcoin/.mynode/pyblock_version_latest
|
PYBLOCK_LATEST_VERSION_FILE=/home/bitcoin/.mynode/pyblock_version_latest
|
||||||
|
|
||||||
WARDEN_VERSION="0.91"
|
WARDENTERMINAL_VERSION="869bb48453e9444691c27d2c8908abf2694094ea"
|
||||||
WARDEN_VERSION=$(get_app_version "$WARDEN_VERSION" "warden")
|
WARDENTERMINAL_VERSION=$(get_app_version "$WARDENTERMINAL_VERSION" "wardenterminal")
|
||||||
WARDEN_VERSION_FILE=/home/bitcoin/.mynode/warden_version
|
WARDENTERMINAL_VERSION_FILE=/home/bitcoin/.mynode/wardenterminal_version
|
||||||
WARDEN_LATEST_VERSION_FILE=/home/bitcoin/.mynode/warden_version_latest
|
WARDENTERMINAL_LATEST_VERSION_FILE=/home/bitcoin/.mynode/wardenterminal_version_latest
|
||||||
|
|
||||||
NETDATA_VERSION="v1.32.1"
|
NETDATA_VERSION="v1.32.1"
|
||||||
NETDATA_VERSION=$(get_app_version "$NETDATA_VERSION" "netdata")
|
NETDATA_VERSION=$(get_app_version "$NETDATA_VERSION" "netdata")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user