mirror of https://github.com/tteck/Proxmox.git
				
				
				
			feat(scripts): add free games claimer script
This commit is contained in:
		
							parent
							
								
									34755e3c0b
								
							
						
					
					
						commit
						c4690521b8
					
				| 
						 | 
					@ -28,7 +28,6 @@ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dea
 | 
				
			||||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
 | 
					echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
 | 
				
			||||||
msg_ok "Set up Node.js Repository"
 | 
					msg_ok "Set up Node.js Repository"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
msg_info "Installing Node.js"
 | 
					msg_info "Installing Node.js"
 | 
				
			||||||
$STD apt-get update
 | 
					$STD apt-get update
 | 
				
			||||||
$STD apt-get install -y nodejs
 | 
					$STD apt-get install -y nodejs
 | 
				
			||||||
| 
						 | 
					@ -46,37 +45,39 @@ msg_info "Installing Free Games Claimer"
 | 
				
			||||||
git clone -q https://github.com/vogler/free-games-claimer.git /opt/freegamesclaimer
 | 
					git clone -q https://github.com/vogler/free-games-claimer.git /opt/freegamesclaimer
 | 
				
			||||||
cd /opt/freegamesclaimer
 | 
					cd /opt/freegamesclaimer
 | 
				
			||||||
$STD npm install
 | 
					$STD npm install
 | 
				
			||||||
 | 
					$STD npx playwright install firefox --with-deps
 | 
				
			||||||
msg_ok "Installed Free Games Claimer"
 | 
					msg_ok "Installed Free Games Claimer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing apprise"
 | 
					msg_info "Installing apprise"
 | 
				
			||||||
$STD pip install apprise
 | 
					$STD pip install apprise
 | 
				
			||||||
msg_ok "Installed apprise"
 | 
					msg_ok "Installed apprise"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#msg_info "Creating Service"
 | 
					msg_info "Creating dummy config file"
 | 
				
			||||||
#cat <<EOF >/etc/systemd/system/freegamesclaimer.service
 | 
					cat <<EOF >/opt/freegamesclaimer/data/config.env
 | 
				
			||||||
#[Unit]
 | 
					  NOTIFY=  # apprise notification services
 | 
				
			||||||
#Description=Free Games Claimer Service
 | 
					  NOTIFY_TITLE=  # apprise notification title
 | 
				
			||||||
#After=network.target
 | 
					
 | 
				
			||||||
#
 | 
					  # auth epic-games
 | 
				
			||||||
#[Service]
 | 
					  EG_EMAIL=
 | 
				
			||||||
#Type=exec
 | 
					  EG_PASSWORD=
 | 
				
			||||||
#WorkingDirectory=/opt/freegamesclaimer
 | 
					
 | 
				
			||||||
#ExecStart=/usr/bin/node epic-games
 | 
					  # auth prime-gaming
 | 
				
			||||||
#
 | 
					  PG_EMAIL=
 | 
				
			||||||
#[Install]
 | 
					  PG_PASSWORD=
 | 
				
			||||||
#WantedBy=multi-user.target
 | 
					
 | 
				
			||||||
#EOF
 | 
					  # auth gog
 | 
				
			||||||
#systemctl enable -q --now freegamesclaimer.service
 | 
					  GOG_EMAIL=
 | 
				
			||||||
#msg_ok "Created Service"
 | 
					  GOG_PASSWORD=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # auth AliExpress
 | 
				
			||||||
 | 
					  AER_EMAIL=
 | 
				
			||||||
 | 
					  AE_PASSWORD=
 | 
				
			||||||
 | 
					EOF
 | 
				
			||||||
 | 
					msg_ok "Created dummy config file"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
motd_ssh
 | 
					motd_ssh
 | 
				
			||||||
customize
 | 
					customize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#msg_info "Setting up Epic Games"
 | 
					 | 
				
			||||||
#cd /opt/freegamesclaimer
 | 
					 | 
				
			||||||
#$STD node epic-games
 | 
					 | 
				
			||||||
#msg_info "Set up Epic games"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msg_info "Cleaning up"
 | 
					msg_info "Cleaning up"
 | 
				
			||||||
$STD apt-get -y autoremove
 | 
					$STD apt-get -y autoremove
 | 
				
			||||||
$STD apt-get -y autoclean
 | 
					$STD apt-get -y autoclean
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue