Skip to content

Commit d42882d

Browse files
committed
dcv script
1 parent 920af39 commit d42882d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cookbooks/aws-parallelcluster-platform/files/dcv/pcluster_dcv_connect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ main() {
112112
os=$(< /etc/chef/dna.json jq -r .cluster.base_os)
113113
_log "Input parameters: user: ${user}, OS: ${os}, shared_folder_path: ${shared_folder_path}."
114114

115-
if ! [[ "${os}" =~ ^(alinux2|alinux2023|ubuntu2004|ubuntu2204|rhel8|rocky8|rhel9|rocky9)$ ]]; then
115+
if ! [[ "${os}" =~ ^(alinux2|alinux2023|ubuntu2004|ubuntu2204|ubuntu2404|rhel8|rocky8|rhel9|rocky9)$ ]]; then
116116
_fail "OS not supported."
117117
fi
118118

cookbooks/aws-parallelcluster-platform/resources/dcv/partial/_ubuntu_common.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ def pre_install
4242
# Must purge ifupdown before creating the AMI or the instance will have an ssh failure
4343
# Run dpkg --configure -a if there is a `dpkg interrupted` issue when installing ubuntu-desktop
4444
code <<-PREREQ
45-
set -x
45+
set -e
4646
DEBIAN_FRONTEND=noninteractive
4747
apt -y install whoopsie
48-
apt -y install ubuntu-desktop
49-
echo $?
48+
apt -y install ubuntu-desktop && apt -y install mesa-utils || (dpkg --configure -a && exit 1)
5049
apt -y purge ifupdown
5150
wget https://d1uj6qtbmh3dt5.cloudfront.net/NICE-GPG-KEY
5251
gpg --import NICE-GPG-KEY

0 commit comments

Comments
 (0)