Patch version in thunderhub to prevent segfault

This commit is contained in:
Taylor Helsper 2022-05-24 20:45:42 -05:00
parent 5e891a5cfd
commit 8b21c3b66b
2 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if ! skip_base_upgrades ; then
# Update SD card
mkdir -p /etc/torrc.d
# Create any necessary users
useradd -m -s /bin/bash joinmarket || true
@ -840,6 +840,9 @@ if should_install_app "thunderhub" ; then
sudo -u bitcoin mv thunderhub-* thunderhub
cd thunderhub
# Patch versions
sed -i 's/\^5.3.5/5.3.3/g' package.json || true # Fixes segfault with 5.3.5 on x86
sudo -u bitcoin npm install --legacy-peer-deps # --only=production # (can't build with only production)
sudo -u bitcoin npm run build
sudo -u bitcoin npx next telemetry disable

View File

@ -812,6 +812,9 @@ if [ "$CURRENT" != "$THUNDERHUB_VERSION" ]; then
sudo -u bitcoin mv thunderhub-* thunderhub
cd thunderhub
# Patch versions
sed -i 's/\^5.3.5/5.3.3/g' package.json || true # Fixes segfault with 5.3.5 on x86
sudo -u bitcoin npm install --legacy-peer-deps # --only=production # (can't build with only production)
sudo -u bitcoin npm run build
sudo -u bitcoin npx next telemetry disable