feat(scripts): add free games claimer script

pull/3640/head
Matan Sarsha 11 months ago
parent 2c78b07100
commit 8eb93c8d65
  1. 34
      ct/free-games-claimer.sh
  2. 2
      install/freegamesclaimer-install.sh

@ -54,23 +54,23 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi #if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP" #msg_info "Updating $APP"
systemctl stop overseerr #systemctl stop overseerr
cd /opt/overseerr #cd /opt/overseerr
output=$(git pull) #output=$(git pull)
git pull &>/dev/null #git pull &>/dev/null
if echo "$output" | grep -q "Already up to date." #if echo "$output" | grep -q "Already up to date."
then #then
msg_ok " $APP is already up to date." # msg_ok " $APP is already up to date."
systemctl start overseerr # systemctl start overseerr
exit # exit
fi #fi
yarn install &>/dev/null #yarn install &>/dev/null
yarn build &>/dev/null #yarn build &>/dev/null
systemctl start overseerr #systemctl start overseerr
msg_ok "Updated $APP" #msg_ok "Updated $APP"
msg_info "Not implemented yet" msg_ok "Not implemented yet"
exit exit
} }

@ -74,7 +74,7 @@ EOF
msg_ok "Created dummy config file" msg_ok "Created dummy config file"
msg_info "Select gaming services to claim games for" 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) 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)
msg_ok "Selected ${CHOICES}" msg_ok "Selected ${CHOICES}"
motd_ssh motd_ssh

Loading…
Cancel
Save