mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
feat(scripts): exit node
This commit is contained in:
parent
422d2d71fc
commit
d77d5dde7e
1 changed files with 4 additions and 3 deletions
|
@ -56,6 +56,7 @@ msg_info "Creating dummy config file"
|
|||
cd /opt/freegamesclaimer
|
||||
mkdir data
|
||||
cat <<EOF >/opt/freegamesclaimer/data/config.env
|
||||
LOGIN_TIMEOUT=30
|
||||
NOTIFY= # apprise notification services
|
||||
NOTIFY_TITLE= # apprise notification title
|
||||
|
||||
|
@ -77,10 +78,10 @@ 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)
|
||||
|
||||
function setup_epic() {
|
||||
$STD LOGIN_TIMEOUT=30 node epic-games || success=false
|
||||
$STD node epic-games || success=false
|
||||
|
||||
if [ "$success" == false ]; then
|
||||
echo "gog failed"
|
||||
echo "epic failed"
|
||||
else
|
||||
msg_info "Creating daily cronjob for epic games"
|
||||
(crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
|
||||
|
@ -89,7 +90,7 @@ function setup_epic() {
|
|||
}
|
||||
|
||||
function setup_gog() {
|
||||
$STD LOGIN_TIMEOUT=30 node gog || success=false
|
||||
$STD node gog || success=false
|
||||
|
||||
if [ "$success" == false ]; then
|
||||
echo "gog failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue