From 329f1e12ee6a8aad66d7cb13b23ab073dbe174a5 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Wed, 5 Jan 2022 23:31:26 +0100 Subject: [PATCH] Fix some more issues in the installer --- install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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