mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Fix Node 22 compatibility (thanks t2lc) (#2705)
This commit is contained in:
		@@ -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
 | 
					wget -q "https://github.com/jordan-dalby/ByteStash/archive/refs/tags/v${RELEASE}.tar.gz" -O $temp_file
 | 
				
			||||||
tar zxf $temp_file
 | 
					tar zxf $temp_file
 | 
				
			||||||
mv ByteStash-${RELEASE} /opt/bytestash
 | 
					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
 | 
					cd /opt/bytestash/server
 | 
				
			||||||
$STD npm install
 | 
					$STD npm install
 | 
				
			||||||
cd /opt/bytestash/client
 | 
					cd /opt/bytestash/client
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user