mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
feat(scripts): exit node
This commit is contained in:
parent
51ffbd808c
commit
a0309b2896
1 changed files with 6 additions and 14 deletions
|
@ -80,25 +80,17 @@ CHOICES=$(whiptail --title "Select game services" --separate-output --checklist
|
||||||
function setup_epic() {
|
function setup_epic() {
|
||||||
$STD node epic-games || success=false
|
$STD node epic-games || success=false
|
||||||
|
|
||||||
if [ $success == false ]; then
|
msg_info "Creating daily cronjob for epic games"
|
||||||
echo "epic failed"
|
(crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
|
||||||
else
|
msg_ok "Cronjob created"
|
||||||
msg_info "Creating daily cronjob for epic games"
|
|
||||||
(crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab -
|
|
||||||
msg_ok "Cronjob created"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_gog() {
|
function setup_gog() {
|
||||||
$STD node gog || success=false
|
$STD node gog || success=false
|
||||||
|
|
||||||
if [ $success == false ]; then
|
msg_info "Creating daily cronjob for gog"
|
||||||
echo "gog failed"
|
(crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
|
||||||
else
|
msg_ok "Cronjob created"
|
||||||
msg_info "Creating daily cronjob for gog"
|
|
||||||
(crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab -
|
|
||||||
msg_ok "Cronjob created"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $CHOICES
|
echo $CHOICES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue