-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall_arc.sh
executable file
·33 lines (25 loc) · 943 Bytes
/
install_arc.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
#!/bin/bash -e
# Todo: this script is not yet complete
if [ "${EUID}" -eq 0 ]; then
echo "This script should not be run as root."
exit 1
fi
if ! ([ -f "${HOME}/.globus/certs.p12" ] && [ -f "${HOME}/.globus/usercert.pem" ] && [ -f "${HOME}/.globus/userkey.pem" ]); then
echo "Copy the certificate files to ~/.globus first."
exit 1
fi
sudo apt-get install nordugrid-arc-client voms-clients
USERNAME="TODO-SET-ME-FROM-INPUT"
SERVER="kale.grid.helsinki.fi"
scp "${USERNAME}@${SERVER}:/etc/vomses" "./vomses"
sudo mv ./vomses /etc/vomses
sudo chown root:root /etc/vomses
sudo chmod 644 /etc/vomses
CERT_FILE="NorduGrid-2015.crt"
wget "https://ca.nordugrid.org/${CERT_FILE}" -O "${CERT_FILE}"
sudo mv $CERT_FILE "/usr/local/share/ca-certificates/"
sudo chown root:root "/usr/local/share/ca-certificates/${CERT_FILE}"
sudo chmod 644 "/usr/local/share/ca-certificates/${CERT_FILE}"
sudo update-ca-certificates
arcproxy
voms-proxy-init