More Dojo installation enhancements

This commit is contained in:
Taylor Helsper 2020-03-15 14:36:38 -05:00
parent 466f90b9d7
commit 10f6d2a0ab
3 changed files with 12 additions and 8 deletions

View File

@ -67,7 +67,7 @@ pip3 install lndmanage==0.9.0 --no-cache-dir # Install LND Manage (keep up to
pip3 install docker-compose --no-cache-dir
# Install docker
# Install Docker
if [ ! -f /usr/bin/docker ]; then
rm -f /tmp/docker_install.sh
wget https://get.docker.com -O /tmp/docker_install.sh
@ -75,7 +75,7 @@ if [ ! -f /usr/bin/docker ]; then
/bin/bash /tmp/docker_install.sh
fi
# Use systemd for managing docker
# Use systemd for managing Docker
rm -f /etc/init.d/docker
rm -f /etc/systemd/system/multi-user.target.wants/docker.service
systemctl -f enable docker.service
@ -177,7 +177,7 @@ if [ "$CURRENT" != "$LND_UPGRADE_URL" ]; then
fi
fi
# Upgrade Loopd
# Upgrade Loop
echo "Upgrading loopd..."
LOOP_VERSION="v0.5.0-beta"
LOOP_ARCH="loop-linux-armv7"
@ -257,7 +257,7 @@ if [ ! -f /usr/include/secp256k1_ecdh.h ]; then
cp -f include/* /usr/include/
fi
# Upgrade Joinmarket
# Upgrade JoinMarket
echo "Upgrading JoinMarket..."
if [ $IS_PREMIUM -eq 1 ]; then
JOINMARKET_VERSION=0.6.1
@ -281,7 +281,7 @@ if [ $IS_PREMIUM -eq 1 ]; then
git fetch --tags --all
git reset --hard v$JOINMARKET_VERSION
# Create virtualenv and setup joinmarket
# Create virtualenv and setup JoinMarket
virtualenv -p python3 jmvenv
source jmvenv/bin/activate
python setupall.py --daemon

View File

@ -51,9 +51,13 @@ elif [ "$APP" = "whirlpool" ]; then
elif [ "$APP" = "dojo" ]; then
rm -f /mnt/hdd/mynode/settings/dojo_url
cd /opt/mynode/dojo/docker/my-dojo/
# Stop and uninstall
yes | ./dojo.sh uninstall
# Reset config files
rm -f ./conf/docker-node.conf
rm -f ./conf/docker-mysql.conf
echo "y" | ./dojo.sh uninstall
else
echo "UNKNOWN APP: $APP"
exit 1

View File

@ -94,8 +94,8 @@ def get_latest_beta_version():
def reinstall_app(app):
# Upgrade
os.system("mkdir -p /home/admin/upgrade_logs")
cmd = "/usr/bin/mynode_reinstall_app.sh {} 2>&1".format(app)
os.system("mkdir -p /home/admin/reinstall_logs")
cmd = "/usr/bin/mynode_reinstall_app.sh {} > /home/admin/reinstall_logs/reinstall_{}.txt 2>&1".format(app,app)
subprocess.call(cmd, shell=True)
# Sync