File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ Resources:
438
438
inputs :
439
439
runCommand :
440
440
- " #!/bin/bash"
441
+ - if [[ -f /home/ec2-user/environment/lambda.log ]]; then exit 1; fi
441
442
- set -x
442
443
- exec >/home/ec2-user/environment/lambda.log; exec 2>&1
443
444
- echo LANG=en_US.utf-8 >> /etc/environment
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [[ -f /home/ec2-user/environment/bootstrap.log ]]; then
4
+ exit 1
5
+ fi
6
+
3
7
set -x
4
8
exec > /home/ec2-user/environment/bootstrap.log; exec 2>&1
5
9
44
48
/usr/bin/envsubst < " 1click-hpc/parallelcluster/config.${AWS_REGION_NAME} .sample" > cluster.config
45
49
/usr/bin/envsubst ' ${SLURM_DB_ENDPOINT}' < " 1click-hpc/sacct/mysql/db.config" > db.config
46
50
/usr/bin/envsubst ' ${SLURM_DB_ENDPOINT}' < " 1click-hpc/sacct/slurm/slurmdbd.conf" > slurmdbd.conf
51
+ /usr/bin/envsubst ' ${S3_BUCKET}' < " 1click-hpc/enginframe/fm.browse.ui" > fm.browse.ui
52
+
47
53
aws s3 cp db.config " s3://${S3_BUCKET} /1click-hpc/sacct/mysql/db.config" --region " ${AWS_REGION_NAME} "
48
54
aws s3 cp slurmdbd.conf " s3://${S3_BUCKET} /1click-hpc/sacct/slurm/slurmdbd.conf" --region " ${AWS_REGION_NAME} "
55
+ aws s3 cp fm.browse.ui " s3://${S3_BUCKET} /1click-hpc/enginframe/fm.browse.ui" --region " ${AWS_REGION_NAME} "
56
+ rm -f db.config slurmdbd.conf fm.browse.ui
49
57
sudo chown -R ec2-user:ec2-user /home/ec2-user/
50
58
51
59
# Create the cluster
You can’t perform that action at this time.
0 commit comments