spyxagentkun commited on
Commit
73fa869
·
verified ·
1 Parent(s): 70b7fa4

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +16 -7
entrypoint.sh CHANGED
@@ -1,13 +1,22 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- sed -i "s/APP_ID_PLACEHOLDER/$TG_APP_ID/" /root/.tgfs/config.yaml
5
- sed -i "s/APP_HASH_PLACEHOLDER/$TG_APP_HASH/" /root/.tgfs/config.yaml
6
- sed -i "s/CHANNEL_PLACEHOLDER/$TG_CHANNEL_ID/" /root/.tgfs/config.yaml
7
- sed -i "s/GITHUB_TOKEN_PLACEHOLDER/$GITHUB_TOKEN/" /root/.tgfs/config.yaml
8
- sed -i "s|GITHUB_REPO_PLACEHOLDER|$GITHUB_REPO|" /root/.tgfs/config.yaml
9
- sed -i "s/WEBDAV_USER_PLACEHOLDER/$WEBDAV_USER/" /root/.tgfs/config.yaml
10
- sed -i "s/WEBDAV_PASS_PLACEHOLDER/$WEBDAV_PASS/" /root/.tgfs/config.yaml
 
 
 
 
 
 
 
 
 
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