mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Alpine-Node-RED: Update Service File (#4628)
* Update alpine-node-red-install.sh * Update alpine-node-red-install.sh
This commit is contained in:
		@@ -29,13 +29,19 @@ msg_info "Installing Node-RED"
 | 
			
		||||
npm install -g --unsafe-perm node-red
 | 
			
		||||
msg_ok "Installed Node-RED"
 | 
			
		||||
 | 
			
		||||
msg_info "Creating /home/nodered"
 | 
			
		||||
mkdir -p /home/nodered
 | 
			
		||||
chown -R nodered:users /home/nodered
 | 
			
		||||
chmod 750 /home/nodered
 | 
			
		||||
msg_ok "Created /home/nodered"
 | 
			
		||||
 | 
			
		||||
msg_info "Creating Node-RED Service"
 | 
			
		||||
service_path="/etc/init.d/nodered"
 | 
			
		||||
 | 
			
		||||
echo '#!/sbin/openrc-run
 | 
			
		||||
description="Node-RED Service"
 | 
			
		||||
 | 
			
		||||
command="/usr/bin/node-red"
 | 
			
		||||
command="/usr/local/bin/node-red"
 | 
			
		||||
command_args="--max-old-space-size=128 -v"
 | 
			
		||||
command_user="nodered"
 | 
			
		||||
pidfile="/var/run/nodered.pid"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user