forked from SilentDemonSD/pyTele-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyteledeploy.sh
More file actions
40 lines (33 loc) · 1.13 KB
/
Copy pathpyteledeploy.sh
File metadata and controls
40 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
if [ -z "$REPO_URL" ] || [ -z "$REPO_BRANCH" ]; then
echo "REPO_URL or REPO_BRANCH environment variable is not set. Exiting ..."
exit 1
fi
if [ -d ".git" ]; then
rm -rf .git
fi
git init -q
git config --global user.email drxxstrange@gmail.com
git config --global user.name SilentDemonSD
git remote add origin $REPO_URL
git fetch origin -q
git reset --hard origin/$REPO_BRANCH -q
apt-get update && \
apt-get install -y ffmpeg && \
apt-get clean
uv pip install --system --no-cache-dir -q -r requirements.txt && \
apt-get update && \
apt-get install -y ffmpeg && \
apt-get clean
if [ -z "$START_CMD" ]; then
echo "START_CMD not specified. Exiting Now ..."
exit 1
fi
echo "
░▀█▀▒██▀░█▒░▒██▀░▒░░█▒░░▄▀▄▒▄▀▄░█▀▄▒██▀▒█▀▄
░▒█▒░█▄▄▒█▄▄░█▄▄░▀▀▒█▄▄░▀▄▀░█▀█▒█▄▀░█▄▄░█▀▄
v2.0.0
Repo : https://github.com/SilentDemonSD/pyTele-Loader By SilentDemonSD
Repo URL : $REPO_URL
Repo Branch : $REPO_BRANCH"
eval "$START_CMD"