Revert "Remove UNO bot"

This reverts commit c106d22135.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-09 18:40:56 +00:00
parent 3668963fc9
commit 7953399bb8
No known key found for this signature in database
GPG key ID: B7843F823355E9B9
2 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,30 @@
[Unit]
Description=UNO Telegram bot service
After=network.target
[Service]
Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/mau_mau_bot
ExecStart=/home/bot/mau_mau_bot/venv/bin/python bot.py
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
# Security
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target

View file

@ -8,7 +8,7 @@ function prettyPrint {
}
# Grab all service names
declare -a services=('caddy' 'goaccess' 'mirror-bot' 'mirror-bot-2' 'mkr-bin' 'walls-bot')
declare -a services=('caddy' 'goaccess' 'mirror-bot' 'mirror-bot-2' 'mkr-bin' 'uno-bot' 'walls-bot')
# Now loop through each service and install it
for service in "${services[@]}"; do