fix l'installation

This commit is contained in:
klafyvel 2018-08-02 15:08:06 +02:00 committed by klafyvel
parent 8a8d7e98dc
commit 520a6668f4
3 changed files with 6 additions and 5 deletions

View file

@ -1,7 +1,8 @@
apt-get install python3-pip
mkdir /var/log/klafirc
mkdir /etc/klafirc
cp bots.yaml /etc/klafirc
cp klafirc.service /etc/systemd/system/
systemctl enable klafirc.service
systemctl start klafirc.service
python3 setup.py install
systemctl start klafirc.service

View file

@ -5,10 +5,10 @@ After=network-online.target
[Service]
Type=simple
User=klafirc
Group=klafirc
User=root
Group=root
ExecStart=python3 -m klafirc
ExecStart=/usr/bin/python3 -m klafirc
[Install]
WantedBy=multi-user.target

View file

@ -2,7 +2,7 @@ import logging
from logging.handlers import RotatingFileHandler
DEBUG = True
BOT_FILE = '/home/klafyvel/dev/klafirc/bots.yaml'
BOT_FILE = '/etc/klafirc/bots.yaml'
LOG_FILE = '/var/log/klafirc/klafirc.log'
logger = logging.getLogger()