feat(scripts): add free games claimer script

pull/3640/head
Matan Sarsha 11 months ago
parent 8eb93c8d65
commit b36e47ca38
  1. 23
      install/freegamesclaimer-install.sh

@ -73,9 +73,26 @@ cat <<EOF >/opt/freegamesclaimer/data/config.env
EOF EOF
msg_ok "Created dummy config file" msg_ok "Created dummy config file"
msg_info "Select gaming services to claim games for" msg_info "Initializing gaming services to claim games for"
CHOICES=$(whiptail --title "Tools to install" --checklist "Choose something" 20 78 4 "NTP" "NTP setup" OFF "Perl" "Perl install" OFF "Ruby" "Ruby install" OFF "Python" "Python install" OFF 3>&1 1>&2 2>&3) CHOICES=$(whiptail --title "Select game services" --checklist "Select services" 20 78 4 "EPIC" "Epic Games" OFF "GOG" "Good Old Games" OFF 3>&1 1>&2 2>&3)
msg_ok "Selected ${CHOICES}"
if [ ! -z "$CHOICES" ]; then
for CHOICE in $CHOICES; do
case "$CHOICE" in
"EPIC")
$STD node epic-games
;;
"GOG")
$STD node gog
;;
*)
echo "Unsupported item $CHOICE!" >&2
exit 1
;;
esac
done
fi
msg_ok "Services initialized: ${CHOICES}"
motd_ssh motd_ssh
customize customize

Loading…
Cancel
Save