mirror of https://github.com/tteck/Proxmox.git
				
				
				
			feat(scripts): exit node
This commit is contained in:
		
							parent
							
								
									b996ff3b65
								
							
						
					
					
						commit
						a3fd1ae8b0
					
				| 
						 | 
					@ -77,7 +77,7 @@ msg_info "Initializing gaming services to claim games for"
 | 
				
			||||||
CHOICES=$(whiptail --title "Select game services" --separate-output --checklist "Select services" 20 78 4 "EPIC" "Epic Games" OFF "GOG" "Good Old Games" OFF 3>&1 1>&2 2>&3)
 | 
					CHOICES=$(whiptail --title "Select game services" --separate-output --checklist "Select services" 20 78 4 "EPIC" "Epic Games" OFF "GOG" "Good Old Games" OFF 3>&1 1>&2 2>&3)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function setup_epic() {
 | 
					function setup_epic() {
 | 
				
			||||||
  $STD node epic-games
 | 
					  $STD node epic-games || exit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  msg_info "Creating daily cronjob for epic games"
 | 
					  msg_info "Creating daily cronjob for epic games"
 | 
				
			||||||
  (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
 | 
					  (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
 | 
				
			||||||
| 
						 | 
					@ -85,7 +85,7 @@ function setup_epic() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function setup_gog() {
 | 
					function setup_gog() {
 | 
				
			||||||
  $STD node gog
 | 
					  $STD node gog || exit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  msg_info "Creating daily cronjob for gog"
 | 
					  msg_info "Creating daily cronjob for gog"
 | 
				
			||||||
  (crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
 | 
					  (crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue