/[LeafOK_CVS]/lbbs-combo/script/export_xml_to_solr.sh
ViewVC logotype

Annotation of /lbbs-combo/script/export_xml_to_solr.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Jan 22 13:03:04 2026 UTC (7 weeks, 5 days ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Content type: text/x-sh
Add Solr container related configuration and script files

1 sysadm 1.1 #!/bin/bash
2    
3     php /var/www/html/manage/export_article.php 2>/dev/null |
4     while read file; do
5     echo $file
6     curl http://solr:8983/solr/lbbs/update -X POST -H 'Content-type:text/xml' \
7     --data-binary @/var/www/html/export_xml/$file.xml 2>/dev/null
8     if [ $? -ne 0 ]; then
9     echo "Solr update failed!"
10     exit 2
11     fi
12     done
13    
14     if [ $? -ne 0 ]; then
15     echo "Export XML data failed!"
16     exit 1
17     fi

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1