Update entrypoint.sh
Browse files- entrypoint.sh +16 -7
entrypoint.sh
CHANGED
|
@@ -1,13 +1,22 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -e
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
cd /app
|
| 13 |
python main.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -e
|
| 3 |
|
| 4 |
+
cat > /root/.tgfs/config.yaml << EOF
|
| 5 |
+
telegram:
|
| 6 |
+
app_id: "${TG_APP_ID}"
|
| 7 |
+
app_hash: "${TG_APP_HASH}"
|
| 8 |
+
channel: "${TG_CHANNEL_ID}"
|
| 9 |
+
|
| 10 |
+
github:
|
| 11 |
+
token: "${GITHUB_TOKEN}"
|
| 12 |
+
repo: "${GITHUB_REPO}"
|
| 13 |
+
|
| 14 |
+
webdav:
|
| 15 |
+
host: "0.0.0.0"
|
| 16 |
+
port: 7860
|
| 17 |
+
username: "${WEBDAV_USER}"
|
| 18 |
+
password: "${WEBDAV_PASS}"
|
| 19 |
+
EOF
|
| 20 |
|
| 21 |
cd /app
|
| 22 |
python main.py
|