mirror of https://github.com/tteck/Proxmox.git
				
				
				
			enhance
This commit is contained in:
		
							parent
							
								
									ed77255127
								
							
						
					
					
						commit
						549d6f533f
					
				| 
						 | 
				
			
			@ -31,6 +31,8 @@ msg_info "Installing Mylar3"
 | 
			
		|||
RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
 | 
			
		||||
msg_info "Installing Mylar3 ${RELEASE} (Patience)"
 | 
			
		||||
mkdir -p /opt/mylar3
 | 
			
		||||
mkdir -p /var/lib/mylar3/
 | 
			
		||||
chmod 775 /var/lib/mylar3/
 | 
			
		||||
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 --strip-components=1 &>/dev/null
 | 
			
		||||
cd /opt/mylar3
 | 
			
		||||
$STD python3 -m pip install -r requirements.txt
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +47,7 @@ Description=mylar3
 | 
			
		|||
[Service]
 | 
			
		||||
Type=simple
 | 
			
		||||
WorkingDirectory=/opt/mylar3
 | 
			
		||||
ExecStart=python3 Mylar.py -p 8585
 | 
			
		||||
ExecStart=python3 Mylar.py -p 8585 --datadir /var/lib/mylar3/
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=multi-user.target
 | 
			
		||||
EOF
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue