mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 16:39:15 +00:00
Fix upgrade bug in corsproxy
This commit is contained in:
parent
c9fa6664a2
commit
a7ba290578
|
@ -281,7 +281,7 @@ cd ~
|
||||||
CORSPROXY_UPGRADE_URL=https://github.com/tehelsper/CORS-Proxy/archive/v1.6.0.tar.gz
|
CORSPROXY_UPGRADE_URL=https://github.com/tehelsper/CORS-Proxy/archive/v1.6.0.tar.gz
|
||||||
CORSPROXY_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.corsproxy_url
|
CORSPROXY_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.corsproxy_url
|
||||||
CURRENT=""
|
CURRENT=""
|
||||||
if [ -f $CORSPROXY_UPGRADE_URL ]; then
|
if [ -f $CORSPROXY_UPGRADE_URL_FILE ]; then
|
||||||
CURRENT=$(cat $CORSPROXY_UPGRADE_URL_FILE)
|
CURRENT=$(cat $CORSPROXY_UPGRADE_URL_FILE)
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$CORSPROXY_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$CORSPROXY_UPGRADE_URL" ]; then
|
||||||
|
@ -488,8 +488,12 @@ fi
|
||||||
# echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE
|
# echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE
|
||||||
# fi
|
# fi
|
||||||
rm -f /usr/local/bin/tor || true
|
rm -f /usr/local/bin/tor || true
|
||||||
$TORIFY apt-get remove -y tor
|
TOR_VERSION=$(tor --version)
|
||||||
$TORIFY apt-get install -y tor
|
if [[ "$TOR_VERSION" != *"Tor version 0.4"* ]]; then
|
||||||
|
$TORIFY apt-get remove -y tor
|
||||||
|
$TORIFY apt-get install -y tor
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Enable fan control
|
# Enable fan control
|
||||||
if [ $IS_ROCKPRO64 = 1 ]; then
|
if [ $IS_ROCKPRO64 = 1 ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user