Move walls bot to unprivileged user

Just sound security IMO

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-07-14 11:45:35 +05:30
parent 74a9ac1246
commit d4848fe485
No known key found for this signature in database
GPG key ID: C2E74282C2133D62

View file

@ -5,9 +5,9 @@ After=network.target
[Service]
Restart=on-abort
Type=simple
User=msfjarvis
WorkingDirectory=/home/msfjarvis/walls-manager
ExecStart=/home/msfjarvis/walls-manager/venv/bin/python bot.py
User=bot
WorkingDirectory=/home/bot/walls-manager
ExecStart=/home/bot/walls-manager/venv/bin/python bot.py
ExecReload=/bin/kill -USR1 $MAINPID
; Use graceful shutdown with a reasonable timeout