mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
feat(scripts): add free games claimer script
This commit is contained in:
parent
8eb93c8d65
commit
b36e47ca38
1 changed files with 20 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue