-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.sh
executable file
·20 lines (12 loc) · 951 Bytes
/
index.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
CORE="$1"
TYPE="$2"
[ -s "/usr/local/rvm/scripts/rvm" ] && . "/usr/local/rvm/scripts/rvm"
rvm 2.6.5@arclight-test
echo "$(date) $line Export $TYPE"
cd /var/www/update/arclight-UAlbany
export REPOSITORY_ID='ndpa'
traject -u https://solr2020.library.albany.edu:8984/solr/arclight-new -i xml -c /home/railsdev/.rvm/gems/ruby-2.6.5@arclight-test/bundler/gems/arclight-f9b61c2cf12c/lib/arclight/traject/ead2_config.rb /media/SPE/collections/ndpa/apap347.xml
#traject -u https://solr2020.library.albany.edu:8984/solr/arclight-0.4.0 -i xml -c /home/railsdev/.rvm/gems/ruby-2.6.5@arclight-test/gems/arclight-0.4.0/lib/arclight/traject/ead2_config.rb /media/SPE/collections/ua/ua935.xml
#find /media/SPE/collections/$TYPE -type f -name '*.xml' -exec \
#traject -u https://solr2020.library.albany.edu:8984/solr/$CORE -i xml -c /home/railsdev/.rvm/gems/ruby-2.6.5@arclight-test/gems/arclight-0.4.0/lib/arclight/traject/ead2_config.rb {} ';'