From 2c78b0710050979b7b79b46a8584a6c329004f79 Mon Sep 17 00:00:00 2001
From: Matan Sarsha <smatan84@gmail.com>
Date: Sat, 31 Aug 2024 15:21:17 +0300
Subject: [PATCH] feat(scripts): add free games claimer script

---
 install/freegamesclaimer-install.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/install/freegamesclaimer-install.sh b/install/freegamesclaimer-install.sh
index 751f41d8..b9b0e858 100644
--- a/install/freegamesclaimer-install.sh
+++ b/install/freegamesclaimer-install.sh
@@ -53,6 +53,8 @@ $STD pip install apprise
 msg_ok "Installed apprise"
 
 msg_info "Creating dummy config file"
+cd /opt/freegamesclaimer
+mkdir data
 cat <<EOF >/opt/freegamesclaimer/data/config.env
   NOTIFY=  # apprise notification services
   NOTIFY_TITLE=  # apprise notification title
@@ -68,13 +70,13 @@ cat <<EOF >/opt/freegamesclaimer/data/config.env
   # auth gog
   GOG_EMAIL=
   GOG_PASSWORD=
-
-  # auth AliExpress
-  AER_EMAIL=
-  AE_PASSWORD=
 EOF
 msg_ok "Created dummy config file"
 
+msg_info "Select gaming services to claim games for"
+CHOICES=$(whiptail --title "Gaming services" --checklist "Select services" 20 78 4 "EPIC" "Allow connections to other hosts" ON "GOG" "Allow connections from other hosts" OFF "PRIME" "Allow mounting of local devices" OFF)
+msg_ok "Selected ${CHOICES}"
+
 motd_ssh
 customize