diff --git a/install b/install index 6116a91..98eb261 100755 --- a/install +++ b/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