mirror of https://github.com/tteck/Proxmox.git
				
				
				
			feat(scripts): cronjob
This commit is contained in:
		
							parent
							
								
									9444bcb059
								
							
						
					
					
						commit
						52e4d19e23
					
				| 
						 | 
					@ -75,17 +75,14 @@ EOF
 | 
				
			||||||
msg_ok "Created dummy config file"
 | 
					msg_ok "Created dummy config file"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Creating cron jobs"
 | 
					msg_info "Creating cron jobs"
 | 
				
			||||||
  msg_info "Creating daily cronjob for epic games"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  crontab -l | grep -v "0 0 * * * cd /opt/freegamesclaimer && node epic-games" | crontab -
 | 
					cat <<EOF >/opt/claimer_cron_creator.sh
 | 
				
			||||||
  echo "0 0 * * * /path/to/your/command" | crontab -
 | 
					  (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
 | 
				
			||||||
 | 
					  (crontab -l ; echo "5 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
 | 
				
			||||||
#  (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
 | 
					EOF
 | 
				
			||||||
  msg_ok "created"
 | 
					cd /opt
 | 
				
			||||||
 | 
					chmod +x ./claimer_cron_creator.sh
 | 
				
			||||||
  msg_info "Creating daily cronjob for gog"
 | 
					./claimer_cron_creator.sh
 | 
				
			||||||
#  (crontab -l ; echo "2 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
 | 
					 | 
				
			||||||
  msg_ok "created"
 | 
					 | 
				
			||||||
msg_ok "Cron jobs created"
 | 
					msg_ok "Cron jobs created"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
motd_ssh
 | 
					motd_ssh
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue