From d77d5dde7e24dfbe0c6471bbf82d0fa922140db0 Mon Sep 17 00:00:00 2001 From: Matan Sarsha Date: Sat, 31 Aug 2024 23:37:03 +0300 Subject: [PATCH] feat(scripts): exit node --- install/freegamesclaimer-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/freegamesclaimer-install.sh b/install/freegamesclaimer-install.sh index 187171ce..01474375 100644 --- a/install/freegamesclaimer-install.sh +++ b/install/freegamesclaimer-install.sh @@ -56,6 +56,7 @@ msg_info "Creating dummy config file" cd /opt/freegamesclaimer mkdir data cat </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"