Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
deploy_es_synonym
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
deploy_es_synonym
Commits
28e902eb
Commit
28e902eb
authored
Dec 25, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加新标签关键词
parent
fb61b9bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
check_dynamic_synonym.sh
check_dynamic_synonym.sh
+16
-2
No files found.
check_dynamic_synonym.sh
View file @
28e902eb
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment