|  |  |  | @ -31,18 +31,11 @@ $STD apt-get update | 
			
		
	
		
			
				
					|  |  |  |  | $STD apt-get install -y nodejs | 
			
		
	
		
			
				
					|  |  |  |  | msg_ok "Installed Node.js" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | msg_info "Installing Yarn" | 
			
		
	
		
			
				
					|  |  |  |  | $STD npm install -g yarn | 
			
		
	
		
			
				
					|  |  |  |  | msg_ok "Installed Yarn" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | RELEASE=$(curl -s https://api.github.com/repos/Lissy93/dashy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') | 
			
		
	
		
			
				
					|  |  |  |  | msg_info "Installing Dashy ${RELEASE} (Patience)" | 
			
		
	
		
			
				
					|  |  |  |  | mkdir -p /opt/dashy | 
			
		
	
		
			
				
					|  |  |  |  | wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/${RELEASE}.tar.gz | tar -xz -C /opt/dashy --strip-components=1 | 
			
		
	
		
			
				
					|  |  |  |  | cd /opt/dashy | 
			
		
	
		
			
				
					|  |  |  |  | #sed -i 's/NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build/NODE_OPTIONS=yarn vue-cli-service build/' /opt/dashy/package.json | 
			
		
	
		
			
				
					|  |  |  |  | #$STD yarn | 
			
		
	
		
			
				
					|  |  |  |  | #$STD yarn build | 
			
		
	
		
			
				
					|  |  |  |  | $STD npm install | 
			
		
	
		
			
				
					|  |  |  |  | $STD npm run build | 
			
		
	
		
			
				
					|  |  |  |  | echo "${RELEASE}" >/opt/${APPLICATION}_version.txt | 
			
		
	
	
		
			
				
					|  |  |  | 
 |