mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
31 lines
761 B
Bash
31 lines
761 B
Bash
#!/usr/bin/env bash
|
|
|
|
# 导入通用变量与函数
|
|
dir_shell=/ql/shell
|
|
. $dir_shell/share.sh
|
|
|
|
echo -e "1. 开始检测配置文件\n"
|
|
fix_config
|
|
echo -e "配置文件检测完成\n"
|
|
|
|
echo -e "2. 开始安装青龙依赖\n"
|
|
npm_install_2 $dir_root
|
|
echo -e "青龙依赖安装完成\n"
|
|
|
|
echo -e "3. 开始安装脚本依赖\n"
|
|
cp -f $dir_sample/package.json $dir_scripts/package.json
|
|
npm_install_2 $dir_scripts
|
|
echo -e "脚本依赖安装完成\n"
|
|
|
|
echo -e "4. 复制通知文件\n"
|
|
echo -e "复制一份 $file_notify_py_sample 为 $file_notify_py\n"
|
|
cp -fv $file_notify_py_sample $file_notify_py
|
|
echo
|
|
|
|
echo -e "复制一份 $file_notify_js_sample 为 $file_notify_js\n"
|
|
cp -fv $file_notify_js_sample $file_notify_js
|
|
|
|
echo -e "通知文件复制完成\n"
|
|
|
|
exit 0
|