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