Fix some more issues in the installer
This commit is contained in:
parent
99509dc5a4
commit
329f1e12ee
8
install
8
install
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user