From 474954afb677dbce2f0918534357430ca61420ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 27 Feb 2025 12:07:18 +0100 Subject: [PATCH] Fix Node 22 compatibility (thanks t2lc) (#2705) --- install/bytestash-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/bytestash-install.sh b/install/bytestash-install.sh index 8d4d01b81..cd7cbab84 100644 --- a/install/bytestash-install.sh +++ b/install/bytestash-install.sh @@ -38,6 +38,7 @@ RELEASE=$(curl -s https://api.github.com/repos/jordan-dalby/ByteStash/releases/l wget -q "https://github.com/jordan-dalby/ByteStash/archive/refs/tags/v${RELEASE}.tar.gz" -O $temp_file tar zxf $temp_file mv ByteStash-${RELEASE} /opt/bytestash +sed -i '6s/.*/if (!globalThis.crypto) { globalThis.crypto = crypto; }/' /opt/bytestash/server/src/oidc/oidcConfig.js cd /opt/bytestash/server $STD npm install cd /opt/bytestash/client