mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update peanut.sh
tweak
This commit is contained in:
		
							parent
							
								
									5886f1240e
								
							
						
					
					
						commit
						0e284df495
					
				
							
								
								
									
										14
									
								
								ct/peanut.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								ct/peanut.sh
									
									
									
									
									
								
							| @ -9,17 +9,17 @@ source <(curl -s https://raw.githubusercontent.com/remz1337/Proxmox/remz/misc/bu | |||||||
| function header_info { | function header_info { | ||||||
| clear | clear | ||||||
| cat <<"EOF" | cat <<"EOF" | ||||||
|     ____                         __  |     ____             _   ____  ________ | ||||||
|    / __ \___  ____ _____  __  __/ /_ |    / __ \___  ____ _/ | / / / / /_  __/ | ||||||
|   / /_/ / _ \/ __ `/ __ \/ / / / __/ |   / /_/ / _ \/ __ `/  |/ / / / / / / | ||||||
|  / ____/  __/ /_/ / / / / /_/ / /_   |  / ____/  __/ /_/ / /|  / /_/ / / / | ||||||
| /_/    \___/\__,_/_/ /_/\__,_/\__/   | /_/    \___/\__,_/_/ |_/\____/ /_/ | ||||||
| 
 | 
 | ||||||
| EOF | EOF | ||||||
| } | } | ||||||
| header_info | header_info | ||||||
| echo -e "Loading..." | echo -e "Loading..." | ||||||
| APP="Peanut" | APP="PeaNUT" | ||||||
| var_disk="4" | var_disk="4" | ||||||
| var_cpu="2" | var_cpu="2" | ||||||
| var_ram="2048" | var_ram="2048" | ||||||
| @ -58,7 +58,7 @@ function update_script() { | |||||||
|   if [[ ! -f /etc/systemd/system/peanut.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi |   if [[ ! -f /etc/systemd/system/peanut.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi | ||||||
|   RELEASE=$(curl -sL https://api.github.com/repos/Brandawg93/PeaNUT/releases/latest | grep '"tag_name":' | cut -d'"' -f4) |   RELEASE=$(curl -sL https://api.github.com/repos/Brandawg93/PeaNUT/releases/latest | grep '"tag_name":' | cut -d'"' -f4) | ||||||
|   if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then |   if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then | ||||||
|     msg_info "Updating $APP LXC" |     msg_info "Updating $APP to ${RELEASE}" | ||||||
|     systemctl stop peanut |     systemctl stop peanut | ||||||
|     wget -qO peanut.tar.gz https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE} |     wget -qO peanut.tar.gz https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE} | ||||||
|     tar -xzf peanut.tar.gz -C /opt/peanut --strip-components 1 |     tar -xzf peanut.tar.gz -C /opt/peanut --strip-components 1 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user