mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修改内置token获取方式
This commit is contained in:
+1
-6
@@ -1,12 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
get_token() {
|
||||
local tokenFile="$dir_static/build/token.js"
|
||||
if [[ ! -f "$tokenFile" ]]; then
|
||||
token=$(ts-node-transpile-only "$dir_root/back/token.ts")
|
||||
else
|
||||
token=$(node "$tokenFile")
|
||||
fi
|
||||
token=$(cat $file_auth_token | jq -r .value)
|
||||
}
|
||||
|
||||
add_cron_api() {
|
||||
|
||||
@@ -24,6 +24,7 @@ file_sharecode=$dir_config/sharecode.sh
|
||||
file_config_user=$dir_config/config.sh
|
||||
file_auth_sample=$dir_sample/auth.sample.json
|
||||
file_auth_user=$dir_config/auth.json
|
||||
file_auth_token=$dir_config/token.json
|
||||
file_extra_shell=$dir_config/extra.sh
|
||||
file_task_before=$dir_config/task_before.sh
|
||||
file_task_after=$dir_config/task_after.sh
|
||||
|
||||
Reference in New Issue
Block a user