mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 00:19:15 +00:00
Remove old warden info
This commit is contained in:
parent
e0f68b24d0
commit
caed619c5f
|
@ -1014,36 +1014,6 @@ if should_install_app "warden" ; then
|
|||
fi
|
||||
|
||||
|
||||
# Upgrade WARden Terminal
|
||||
if should_install_app "wardenterminal" ; then
|
||||
WARDEN_TERMINAL_UPGRADE_URL=https://github.com/pxsocs/warden_terminal/archive/$WARDEN_TERMINAL_VERSION.tar.gz
|
||||
CURRENT=""
|
||||
if [ -f $WARDEN_TERMINAL_VERSION_FILE ]; then
|
||||
CURRENT=$(cat $WARDEN_TERMINAL_VERSION_FILE)
|
||||
fi
|
||||
if [ "$CURRENT" != "$WARDEN_TERMINAL_VERSION" ]; then
|
||||
cd /opt/mynode
|
||||
rm -rf wardenterminal
|
||||
|
||||
sudo -u bitcoin wget $WARDEN_TERMINAL_UPGRADE_URL -O wardenterminal.tar.gz
|
||||
sudo -u bitcoin tar -xvf wardenterminal.tar.gz
|
||||
sudo -u bitcoin rm wardenterminal.tar.gz
|
||||
sudo -u bitcoin mv warden_terminal-* wardenterminal
|
||||
cd wardenterminal
|
||||
|
||||
# Make venv
|
||||
if [ ! -d env ]; then
|
||||
sudo -u bitcoin python3 -m venv env
|
||||
fi
|
||||
source env/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
deactivate
|
||||
|
||||
echo $WARDEN_TERMINAL_VERSION > $WARDEN_TERMINAL_VERSION_FILE
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Upgrade Balance of Satoshis
|
||||
if should_install_app "bos" ; then
|
||||
CURRENT=""
|
||||
|
|
|
@ -31,5 +31,4 @@ echo $SPHINXRELAY_VERSION > $SPHINXRELAY_LATEST_VERSION_FILE
|
|||
echo $NETDATA_VERSION > $NETDATA_LATEST_VERSION_FILE
|
||||
echo $WEBSSH2_VERSION > $WEBSSH2_LATEST_VERSION_FILE
|
||||
echo $PYBLOCK_VERSION > $PYBLOCK_LATEST_VERSION_FILE
|
||||
echo $WARDEN_VERSION > $WARDEN_LATEST_VERSION_FILE
|
||||
echo $WARDEN_TERMINAL_VERSION > $WARDEN_TERMINAL_LATEST_VERSION_FILE
|
||||
echo $WARDEN_VERSION > $WARDEN_LATEST_VERSION_FILE
|
Loading…
Reference in New Issue
Block a user