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 /var/log/klafirc
|
||||||
mkdir /etc/klafirc
|
mkdir /etc/klafirc
|
||||||
cp bots.yaml /etc/klafirc
|
cp bots.yaml /etc/klafirc
|
||||||
cp klafirc.service /etc/systemd/system/
|
cp klafirc.service /etc/systemd/system/
|
||||||
systemctl enable klafirc.service
|
systemctl enable klafirc.service
|
||||||
systemctl start klafirc.service
|
|
||||||
python3 setup.py install
|
python3 setup.py install
|
||||||
|
systemctl start klafirc.service
|
||||||
|
|
|
@ -5,10 +5,10 @@ After=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
||||||
User=klafirc
|
User=root
|
||||||
Group=klafirc
|
Group=root
|
||||||
|
|
||||||
ExecStart=python3 -m klafirc
|
ExecStart=/usr/bin/python3 -m klafirc
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -2,7 +2,7 @@ import logging
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
BOT_FILE = '/home/klafyvel/dev/klafirc/bots.yaml'
|
BOT_FILE = '/etc/klafirc/bots.yaml'
|
||||||
LOG_FILE = '/var/log/klafirc/klafirc.log'
|
LOG_FILE = '/var/log/klafirc/klafirc.log'
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
Loading…
Reference in a new issue