-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-sge.sh
33 lines (22 loc) · 873 Bytes
/
install-sge.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/sh
set -e
apt-get install -y wget tcsh openjdk-8-jdk-headless make gcc ant libhwloc-dev \
libssl-dev libdb-dev libpam0g-dev junit javacc man gawk
VER=8.1.9
cd /root
wget -c http://arc.liv.ac.uk/downloads/SGE/releases/$VER/sge-$VER.tar.gz
tar zxvf sge-$VER.tar.gz
cd /root/sge-$VER/source
export SGE_ROOT=/opt/sge
export SGE_CELL=default
mkdir /opt/sge
useradd -r -m -U -d /home/sgeadmin -s /bin/bash -c "Docker SGE Admin" sgeadmin
usermod -a -G sudo sgeadmin
sh scripts/bootstrap.sh && ./aimk -no-qmon -no-qtcsh && ./aimk -man
echo Y | ./scripts/distinst -local -allall -libs -noexit
cd $SGE_ROOT
touch bin/lx-amd64/{qmon,qtcsh}
ln -s $SGE_ROOT/$SGE_CELL/common/settings.sh /etc/profile.d/sge_settings.sh
echo . /etc/profile.d/sge_settings.sh >> /etc/bash.bashrc
chmod a+x /root/boot-sge.sh
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*