-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathentrypoint.sh
More file actions
54 lines (38 loc) · 1.17 KB
/
Copy pathentrypoint.sh
File metadata and controls
54 lines (38 loc) · 1.17 KB
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
#!/bin/bash
echo 'Configuring "/hs/svr_1/config.dct" :'
echo
echo '"/hs/svr_1/config.dct" content before :'
echo
cat /hs/svr_1/config.dct
echo
sed -i "s/BIND_IP/${BIND_IP}/g" /hs/svr_1/config.dct
sed -i "s/HTTP_PORT/${HTTP_PORT}/g" /hs/svr_1/config.dct
sed -i "s/LOG_ACCESS/${LOG_ACCESS}/g" /hs/svr_1/config.dct
sed -i "s/TCP_UDP_PORT/${TCP_UDP_PORT}/g" /hs/svr_1/config.dct
sed -i "s/LOG_ROTATION_FREQUENCY_LONG/${LOG_ROTATION_FREQUENCY_LONG}/g" /hs/svr_1/config.dct
sed -i "s/YOUR_PREFIX/${HANDLE_PREFIX}/g" /hs/svr_1/config.dct
echo '"/hs/svr_1/config.dct" content after :'
echo
cat /hs/svr_1/config.dct
echo
echo 'Configuring "/hs/svr_1/handle-dspace-plugin.cfg" :'
echo
cat /hs/svr_1/handle-dspace-plugin.cfg
echo
sed -i "s|DSPACE_SERVER_URL|${DSPACE_SERVER_URL}|g" /hs/svr_1/handle-dspace-plugin.cfg
echo
cat /hs/svr_1/handle-dspace-plugin.cfg
echo
echo
echo 'Done configuring "/hs/svr_1/handle-dspace-plugin.cfg" .'
echo
echo 'Starting handle-server: "/hs/handle-9.3.1/bin/hdl-server /hs/svr_1"'
echo
/hs/handle-9.3.1/bin/hdl-server /hs/svr_1 &
echo 'Handle server started ...'
echo
netstat -tulnp
echo
echo 'Logs files are under: "/hs/svr_1/logs"'
echo
tail -f /dev/null