Use /var/ubot as data directory

This commit is contained in:
Michael De Roover 2022-01-01 22:40:27 +01:00
parent 39c1deacc0
commit 03b5e60a97
Signed by: vim
GPG Key ID: 075496E232CE04CB
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
from telethon import TelegramClient, events from telethon import TelegramClient, events
from config import * from config import *
client = TelegramClient('ubot', api_id, api_hash) client = TelegramClient('/var/ubot/ubot', api_id, api_hash)
@client.on(events.NewMessage) @client.on(events.NewMessage)
async def edit(event): async def edit(event):

View File

@ -41,9 +41,9 @@ mkuser(){
addfiles(){ addfiles(){
# Install executable and config # Install executable and config
mkdir /etc/ubot install -m770 -o root -g bot /var/ubot
install -o root -g bot -m640 config.py /etc/ubot/config.py install -m640 -o root -g bot config.py /var/ubot/config.py
install -m755 bin/ubot /usr/bin/ubot install -m755 -o root -g root bin/ubot /usr/bin/ubot
# Install service files on installed inits # Install service files on installed inits
if [ -e /sbin/openrc ] if [ -e /sbin/openrc ]