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
d6d73c34bb
commit
af54c0ec01
2 changed files with 18 additions and 17 deletions
|
@ -48,7 +48,7 @@ function default_settings() {
|
||||||
MAC=""
|
MAC=""
|
||||||
VLAN=""
|
VLAN=""
|
||||||
SSH="no"
|
SSH="no"
|
||||||
VERB="no"
|
VERB="yes"
|
||||||
echo_default
|
echo_default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,27 +52,28 @@ msg_info "Installing apprise"
|
||||||
$STD pip install apprise
|
$STD pip install apprise
|
||||||
msg_ok "Installed apprise"
|
msg_ok "Installed apprise"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
#msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/freegamesclaimer.service
|
#cat <<EOF >/etc/systemd/system/freegamesclaimer.service
|
||||||
[Unit]
|
#[Unit]
|
||||||
Description=Free Games Claimer Service
|
#Description=Free Games Claimer Service
|
||||||
After=network.target
|
#After=network.target
|
||||||
|
#
|
||||||
[Service]
|
#[Service]
|
||||||
Type=exec
|
#Type=exec
|
||||||
WorkingDirectory=/opt/freegamesclaimer
|
#WorkingDirectory=/opt/freegamesclaimer
|
||||||
ExecStart=/usr/bin/node epic-games
|
#ExecStart=/usr/bin/node epic-games
|
||||||
|
#
|
||||||
[Install]
|
#[Install]
|
||||||
WantedBy=multi-user.target
|
#WantedBy=multi-user.target
|
||||||
EOF
|
#EOF
|
||||||
systemctl enable -q --now freegamesclaimer.service
|
#systemctl enable -q --now freegamesclaimer.service
|
||||||
msg_ok "Created Service"
|
#msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Setting up Epic Games"
|
msg_info "Setting up Epic Games"
|
||||||
|
cd /opt/freegamesclaimer
|
||||||
$STD node epic-games
|
$STD node epic-games
|
||||||
msg_info "Set up Epic games"
|
msg_info "Set up Epic games"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue