|
@@ -33,9 +33,9 @@ echo GID_${crawler}_${log_type}_${env}
|
|
|
|
|
|
time=$(date +%H:%M:%S)
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 开始监测爬虫进程状态" >> ${log_path}
|
|
|
-echo "$(date "+%Y-%m-%d %H:%M:%S") 更新环境变量..." >> ${log_path}
|
|
|
-cd ~ && source /etc/profile
|
|
|
-echo "$(date "+%Y-%m-%d %H:%M:%S") 更新环境变量完成!" >> ${log_path}
|
|
|
+#echo "$(date "+%Y-%m-%d %H:%M:%S") 更新环境变量..." >> ${log_path}
|
|
|
+#cd ~ && source /etc/profile
|
|
|
+#echo "$(date "+%Y-%m-%d %H:%M:%S") 更新环境变量完成!" >> ${log_path}
|
|
|
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 正在更新代码..." >> ${log_path}
|
|
|
cd ${piaoquan_crawler_dir} && git pull origin master --force
|