-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentry.sh
29 lines (23 loc) · 869 Bytes
/
entry.sh
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
#!/bin/bash
# 假设环境变量VAR需要检查是否为空
printenv
echo "DDNS_DOMAIN:$DDNS_DOMAIN"
echo "mongodb_url:$mongodb_url"
echo "mongodb_collection:$mongodb_collection"
echo "mongodb_db:$mongodb_db"
rm deno-dns-over-https-server.log
rm deno-ddns-over-https-client.log
# sh start.sh
echo "DDNS_DOMAIN:$DDNS_DOMAIN"
echo "mongodb_url:$mongodb_url"
echo "mongodb_collection:$mongodb_collection"
echo "mongodb_db:$mongodb_db"
nohup sh /root/deno-dns-over-https-server.sh >>/root/deno-dns-over-https-server.log 2>&1 &
nohup sh /root/deno-ddns-over-https-client.sh >>/root/deno-ddns-over-https-client.log 2>&1 &
touch deno-ddns-over-https-client.log
touch deno-dns-over-https-server.log
cat deno-ddns-over-https-client.log
cat deno-dns-over-https-server.log
tail -f deno-ddns-over-https-client.log &
tail -f deno-dns-over-https-server.log &
tail -f /dev/null