-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbasex.sh
57 lines (50 loc) · 2.11 KB
/
basex.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
cd /usr/local/bin
sudo ln -s ~/basex/bin/basex
basex -Vc "REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar"
cd ~/openinfoman/repo
basex -Vc "repo install csd_base_library.xqm"
basex -Vc "repo install csd_base_library_updating.xqm"
basex -Vc "repo install csd_base_stored_queries.xqm"
basex -Vc "repo install csd_webapp_config.xqm"
basex -Vc "repo install csd_webapp_ui.xqm"
basex -Vc "repo install csd_document_manager.xqm"
basex -Vc "repo install csd_load_sample_directories.xqm"
basex -Vc "repo install csd_query_updated_services.xqm"
basex -Vc "repo install csd_poll_service_directories.xqm"
basex -Vc "repo install csd_local_services_cache.xqm"
basex -Vc "repo install csd_merge_cached_services.xqm"
basex -Vc "repo install csr_processor.xqm"
basex -Vc "repo install svs_load_shared_value_sets.xqm"
basex -Vc "CREATE DATABASE provider_directory"
#Installation of csv adapter
cd ~/
git clone https://github.com/openhie/openinfoman-csv
cd ~/openinfoman-csv/repo
basex -Vc "REPO INSTALL openinfoman_csv_adapter.xqm"
#Installation of dhis adapter
cd ~/
git clone https://github.com/openhie/openinfoman-dhis
cd ~/openinfoman-dhis/repo
basex -Vc "REPO INSTALL dxf_1_0.xqm"
basex -Vc "REPO INSTALL dxf2csd.xqm "
cd ~/basex/resources/stored_query_definitions
ln -sf ~/openinfoman-dhis/resources/stored_query_definitions/* .
cd ~/basex/resources/stored_updating_query_definitions
ln -sf ~/openinfoman-dhis/resources/stored_updating_query_definitions/* .
cd ~/basex/webapp
ln -sf ~/openinfoman-dhis/webapp/openinfoman_dhis2_bindings.xqm
cd ~/basex/resources/service_directories/
ln -s ~/openinfoman-dhis/resources/service_directories/* .
cd /root/basex/webapp
ln -sf /root/openinfoman/webapp/*xqm .
mkdir -p /root/basex/webapp/static
cd /root/basex/webapp/static
ln -sf /root/openinfoman/webapp/static/* .
#Installation of HWR adapter
cd ~/
git clone https://github.com/openhie/openinfoman-hwr
cd ~/basex/resources/stored_query_definitions
ln -sf ~/openinfoman-hwr/resources/stored_query_definitions/* .
cd ~/basex/resources/stored_updating_query_definitions
ln -sf ~/openinfoman-hwr/resources/stored_updating_query_definitions/* .