Fix some more issues in the installer

This commit is contained in:
Michael De Roover 2022-01-05 23:31:26 +01:00
parent 99509dc5a4
commit 329f1e12ee
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -55,6 +55,12 @@ addfiles(){
fi
}
setup(){
install -m500 -o telelog -g telelog bin/setup /tmp/setup
su telelog -s /usr/bin/python3 /tmp/setup
rm /tmp/setup
}
# Install dependencies
[ $(which apt) ] && apt install python3-pip
[ $(which apk) ] && apk add py3-pip
@ -68,7 +74,7 @@ mkuser
# Run Telethon for the first time
umask 0077
[ -f setup.py ] && su bot -s /usr/bin/python3 $PWD/setup
[ -f bin/setup ] && setup
# Start the service
service telelog start