diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 5c918daa..46e7d349 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -636,8 +636,14 @@ if should_install_app "joininbox" ; then chmod -R +x ./joininbox/ sudo -u joinmarket cp -rf ./joininbox/scripts/* . + # Use Python3.7 on RP4 32-bit + JM_ENV_VARS="" + if [ $IS_64_BIT = 0 ]; then + JM_ENV_VARS="export JM_PYTHON=python3.7; " + fi + # Install - sudo -u joinmarket bash -c "cd /home/joinmarket/; ./install.joinmarket.sh install" || true + sudo -u joinmarket bash -c "cd /home/joinmarket/; ${JM_ENV_VARS} ./install.joinmarket.sh install" || true echo $JOININBOX_VERSION > $JOININBOX_VERSION_FILE fi diff --git a/setup/setup_device.sh b/setup/setup_device.sh index 95c4e331..4d2a1f88 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -627,6 +627,15 @@ if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then chmod -R +x ./joininbox/ sudo -u joinmarket cp -rf ./joininbox/scripts/* . + # Use Python3.7 on RP4 32-bit + JM_ENV_VARS="" + if [ $IS_64_BIT = 0 ]; then + JM_ENV_VARS="export JM_PYTHON=python3.7; " + fi + + # Install + sudo -u joinmarket bash -c "cd /home/joinmarket/; ${JM_ENV_VARS} ./install.joinmarket.sh install" || true + echo $JOININBOX_VERSION > $JOININBOX_VERSION_FILE fi fi