Commit 28e902eb authored by 段英荣's avatar 段英荣

增加新标签关键词

parent fb61b9bd
...@@ -85,12 +85,26 @@ if [[ $last_total_num != $new_total_num ]];then ...@@ -85,12 +85,26 @@ if [[ $last_total_num != $new_total_num ]];then
Counter=`expr $Counter + 1` Counter=`expr $Counter + 1`
done done
TAG_V3_SQL="select name from api_tag_3_0"
mysql -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DB -e "$TAG_V3_SQL" | while IFS= read -r ROW
do
echo $ROW >> $DICFILE
done
TAG_ATTR_V3_SQL="select name from api_tag_attr"
mysql -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DB -e "$TAG_ATTR_V3_SQL" | while IFS= read -r ROW
do
echo $ROW >> $DICFILE
done
sed -i 's/ //' $FILE sed -i 's/ //' $FILE
sed -i 's/ //' $DICFILE sed -i 's/ //' $DICFILE
echo $new_total_num > $LAST_RESULT_FILE echo $new_total_num > $LAST_RESULT_FILE
cp -f /srv/apps/deploy_es_synonym/$DICFILE /data/static/word/ #cp -f /srv/apps/deploy_es_synonym/$DICFILE /data/static/word/
cp -f /srv/apps/deploy_es_synonym/$FILE /data/static/word/ #cp -f /srv/apps/deploy_es_synonym/$FILE /data/static/word/
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment