Skip to content

Change source package for gridengine on Ubuntu 1804 #835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
if node['platform_version'] == '18.04'
default['cfncluster']['base_packages'].delete('libatlas-dev')
default['cfncluster']['base_packages'].push('libatlas-base-dev', 'libssl-dev', 'libglvnd-dev')
default['cfncluster']['sge']['version'] = '8.1.9+dfsg-9build1'
default['cfncluster']['sge']['version'] = '8.1.9+dfsg-9build2'
end

# Modulefile Directory
Expand Down
10 changes: 5 additions & 5 deletions files/ubuntu-18.04/sge_preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ echo "Downloading and extracting source packages for $TARBALL_ROOT_DIR"

pkg_version="$VERSION"

#adds eon source packages
#adds focal source packages
src_bionic=`sed -n '/#\s*deb-src .* bionic universe/p' /etc/apt/sources.list`

# FIXME: if China region use US repository
if [ "${REGION}" != "${REGION#cn-*}" ]; then
src_eoan="deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ eoan universe"
src_focal="deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ focal universe"
else
src_eoan=`echo "${src_bionic}" | sed -e 's/#//' -e 's/bionic/eoan/'`
src_focal=`echo "${src_bionic}" | sed -e 's/#//' -e 's/bionic/focal/'`
fi
echo $src_eoan >> /etc/apt/sources.list
echo $src_focal >> /etc/apt/sources.list
apt update

mkdir /tmp/gridengine && cd /tmp/gridengine
Expand All @@ -22,7 +22,7 @@ root_dir=`ls -d */`
mv "$root_dir" $TARBALL_ROOT_DIR
tar cvfz $TARBALL_PATH $TARBALL_ROOT_DIR

#removes eon source packages
#removes focal source packages
sed -i '$d' /etc/apt/sources.list
apt update
echo "Artifact $TARBALL_ROOT_DIR.tar.gz correctly created"