fix l'installation
This commit is contained in:
parent
8a8d7e98dc
commit
520a6668f4
3 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue