Update docker-entrypoint.sh
Browse files- docker-entrypoint.sh +3 -5
docker-entrypoint.sh
CHANGED
@@ -4,8 +4,6 @@ dir_shell=/ql/shell
|
|
4 |
. $dir_shell/share.sh
|
5 |
. $dir_shell/env.sh
|
6 |
|
7 |
-
|
8 |
-
|
9 |
python3 -c "from datasets import load_dataset"
|
10 |
|
11 |
echo -e "======================写入rclone配置========================\n"
|
@@ -50,6 +48,9 @@ if [[ $EnableExtraShell == true ]]; then
|
|
50 |
echo -e "自定义脚本后台执行中...\n"
|
51 |
fi
|
52 |
|
|
|
|
|
|
|
53 |
echo -e "======================定期备份数据到 Datasets========================\n"
|
54 |
|
55 |
# 设置备份频率 (每分钟备份一次)
|
@@ -60,9 +61,6 @@ BACKUP_FREQUENCY="* * * * *"
|
|
60 |
|
61 |
echo -e "数据备份任务已设置...\n"
|
62 |
|
63 |
-
echo -e "##########写入登陆信息############"
|
64 |
-
echo "{ \"username\": \"$ADMIN_USERNAME\", \"password\": \"$ADMIN_PASSWORD\" }" > /ql/data/config/auth.json
|
65 |
-
|
66 |
# 保持容器运行
|
67 |
tail -f /dev/null
|
68 |
|
|
|
4 |
. $dir_shell/share.sh
|
5 |
. $dir_shell/env.sh
|
6 |
|
|
|
|
|
7 |
python3 -c "from datasets import load_dataset"
|
8 |
|
9 |
echo -e "======================写入rclone配置========================\n"
|
|
|
48 |
echo -e "自定义脚本后台执行中...\n"
|
49 |
fi
|
50 |
|
51 |
+
echo -e "##########写入登陆信息############"
|
52 |
+
echo "{ \"username\": \"$ADMIN_USERNAME\", \"password\": \"$ADMIN_PASSWORD\" }" > /ql/data/config/auth.json
|
53 |
+
|
54 |
echo -e "======================定期备份数据到 Datasets========================\n"
|
55 |
|
56 |
# 设置备份频率 (每分钟备份一次)
|
|
|
61 |
|
62 |
echo -e "数据备份任务已设置...\n"
|
63 |
|
|
|
|
|
|
|
64 |
# 保持容器运行
|
65 |
tail -f /dev/null
|
66 |
|