From 7cba2cf76cc764b33ef8475974fb631640f243cf Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 27 Nov 2021 17:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=9B=AE=E5=BD=95=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=96=87=E4=BB=B6=E6=B2=A1=E6=9C=89=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=8B=B7=E8=B4=9D=E7=A4=BA=E4=BE=8B=E7=9A=84=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/share.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/shell/share.sh b/shell/share.sh index 04582d28..95f71dc4 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -35,6 +35,8 @@ file_notify_js=$dir_scripts/sendNotify.js task_error_log_path=$dir_log/task_error.log nginx_app_conf=$dir_root/docker/front.conf nginx_conf=$dir_root/docker/nginx.conf +dep_notify_py=$dir_dep/notify.py +dep_notify_js=$dir_dep/sendNotify.js ## 清单文件 list_crontab_user=$dir_config/crontab.list @@ -210,6 +212,19 @@ fix_config() { cat /dev/null > /etc/nginx/conf.d/default.conf echo fi + + if [[ ! -s $dep_notify_js ]]; then + echo -e "复制一份 $file_notify_js_sample 为 $dep_notify_js\n" + cp -fv $file_notify_js_sample $dep_notify_js + echo + fi + + if [[ ! -s $dep_notify_py ]]; then + echo -e "复制一份 $file_notify_py_sample 为 $dep_notify_py\n" + cp -fv $file_notify_py_sample $dep_notify_py + echo + fi + } npm_install_sub() {