feat(scripts): setup instructions

This commit is contained in:
Matan Sarsha 2024-09-01 21:28:21 +03:00
parent 2e225c9e1f
commit d414deccda

View file

@ -55,6 +55,7 @@ msg_ok "Installed apprise"
msg_info "Creating dummy config file"
cd /opt/freegamesclaimer
mkdir data
cat <<EOF >/opt/freegamesclaimer/data/config.env
LOGIN_TIMEOUT=30
NOTIFY= # apprise notification services
@ -80,9 +81,10 @@ cat <<EOF >/opt/claimer_cron_creator.sh
(crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
(crontab -l ; echo "5 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
EOF
cd /opt
chmod +x ./claimer_cron_creator.sh
./claimer_cron_creator.sh
./claimer_cron_creator.sh &>/dev/null
rm ./claimer_cron_creator.sh
msg_ok "Cron jobs created"