mirror of https://github.com/tteck/Proxmox.git
				
				
				
			feat(scripts): add free games claimer script
This commit is contained in:
		
							parent
							
								
									afe3652ab9
								
							
						
					
					
						commit
						4457ba8911
					
				| 
						 | 
					@ -18,12 +18,12 @@ EOF
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
echo -e "Loading..."
 | 
					echo -e "Loading..."
 | 
				
			||||||
APP="free-games-claimer"
 | 
					APP="Free Games Claimer"
 | 
				
			||||||
var_disk="8"
 | 
					var_disk="8"
 | 
				
			||||||
var_cpu="2"
 | 
					var_cpu="2"
 | 
				
			||||||
var_ram="2048"
 | 
					var_ram="2048"
 | 
				
			||||||
var_os="debian"
 | 
					var_os="ubuntu"
 | 
				
			||||||
var_version="12"
 | 
					var_version="22.04"
 | 
				
			||||||
variables
 | 
					variables
 | 
				
			||||||
color
 | 
					color
 | 
				
			||||||
catch_errors
 | 
					catch_errors
 | 
				
			||||||
| 
						 | 
					@ -54,22 +54,22 @@ function default_settings() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function update_script() {
 | 
					function update_script() {
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
#if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
					if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
				
			||||||
#msg_info "Updating $APP"
 | 
					msg_info "Updating $APP"
 | 
				
			||||||
#systemctl stop overseerr
 | 
					systemctl stop overseerr
 | 
				
			||||||
#cd /opt/overseerr
 | 
					cd /opt/overseerr
 | 
				
			||||||
#output=$(git pull)
 | 
					output=$(git pull)
 | 
				
			||||||
#git pull &>/dev/null
 | 
					git pull &>/dev/null
 | 
				
			||||||
#if echo "$output" | grep -q "Already up to date."
 | 
					if echo "$output" | grep -q "Already up to date."
 | 
				
			||||||
#then
 | 
					then
 | 
				
			||||||
#  msg_ok " $APP is already up to date."
 | 
					  msg_ok " $APP is already up to date."
 | 
				
			||||||
#  systemctl start overseerr
 | 
					  systemctl start overseerr
 | 
				
			||||||
#  exit
 | 
					  exit
 | 
				
			||||||
#fi
 | 
					fi
 | 
				
			||||||
#yarn install &>/dev/null
 | 
					yarn install &>/dev/null
 | 
				
			||||||
#yarn build &>/dev/null
 | 
					yarn build &>/dev/null
 | 
				
			||||||
#systemctl start overseerr
 | 
					systemctl start overseerr
 | 
				
			||||||
#msg_ok "Updated $APP"
 | 
					msg_ok "Updated $APP"
 | 
				
			||||||
msg_info "Not implemented yet"
 | 
					msg_info "Not implemented yet"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue