diff --git a/rootfs/standard/etc/logrotate.d/rsyslog b/rootfs/standard/etc/logrotate.d/rsyslog index 27861c8b..3aaf0b3e 100644 --- a/rootfs/standard/etc/logrotate.d/rsyslog +++ b/rootfs/standard/etc/logrotate.d/rsyslog @@ -12,6 +12,7 @@ /var/log/www.log /var/log/bitcoind.log /var/log/unlock_lnd.log +/var/log/mynode_docker_images.log { rotate 2 daily diff --git a/rootfs/standard/etc/rsyslog.d/docker_images.conf b/rootfs/standard/etc/rsyslog.d/docker_images.conf new file mode 100644 index 00000000..5170c539 --- /dev/null +++ b/rootfs/standard/etc/rsyslog.d/docker_images.conf @@ -0,0 +1,2 @@ +if $programname == 'mynode_docker_images' then /var/log/mynode_docker_images.log +& stop \ No newline at end of file diff --git a/rootfs/standard/usr/bin/mynode_docker_images.sh b/rootfs/standard/usr/bin/mynode_docker_images.sh index 60eefdd6..4fe3f5cb 100755 --- a/rootfs/standard/usr/bin/mynode_docker_images.sh +++ b/rootfs/standard/usr/bin/mynode_docker_images.sh @@ -5,15 +5,19 @@ set -x source /usr/share/mynode/mynode_config.sh +echo "Starting mynode_docker_images.sh ..." + # Drive should be mounted, let's still wait a bit sleep 60s # Loop and check every 1 day while [ 1 ]; do + echo "Checking for building new docker images..." touch /tmp/installing_docker_images # Upgrade WebSSH2 + echo "Checking for new webssh2..." WEBSSH2_UPGRADE_URL=https://github.com/billchurch/webssh2/archive/v0.2.10-0.tar.gz WEBSSH2_UPGRADE_URL_FILE=/mnt/hdd/mynode/settings/webssh2_url CURRENT="" @@ -35,6 +39,7 @@ while [ 1 ]; do fi # Upgrade mempool.space + echo "Checking for new mempool.space..." if [ $IS_PREMIUM -eq 1 ]; then MEMPOOLSPACE_UPGRADE_URL=https://github.com/mempool-space/mempool.space/archive/master.zip MEMPOOLSPACE_UPGRADE_URL_FILE=/mnt/hdd/mynode/settings/mempoolspace_url @@ -59,5 +64,6 @@ while [ 1 ]; do rm -f /tmp/installing_docker_images # Check again in a day + echo "Waiting a day..." sleep 24h done diff --git a/rootfs/standard/var/www/mynode/mynode.py b/rootfs/standard/var/www/mynode/mynode.py index bf081fbe..2ffc4868 100644 --- a/rootfs/standard/var/www/mynode/mynode.py +++ b/rootfs/standard/var/www/mynode/mynode.py @@ -239,15 +239,15 @@ def index(): } return render_template('state.html', **templateData) - if is_installing_docker_images(): - message = "