Parent Directory
|
Revision Log
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 |