Skip to content

Commit ad7e2da

Browse files
author
ravigurram8
committed
Deployed bucket path added to Pcluster
1 parent 9c19082 commit ad7e2da

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

deploy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,12 @@ aws s3 cp ./rstudio.tar.gz s3://"$bucketname/"
273273
rm -f rstudio.tar.gz
274274
cp ./PCluster/machine-images/config/infra/files/pcluster/slurm-main.yaml ./PCluster/machine-images/config/infra/files/pcluster/slurm.yaml
275275
cp ./PCluster/machine-images/config/infra/files/pcluster/batch-main.yaml ./PCluster/machine-images/config/infra/files/pcluster/batch.yaml
276-
sed -i 's/tempbucket/$bucketname/g' ./PCluster/machine-images/config/infra/files/pcluster/slurm.yaml
277-
sed -i 's/tempbucket/$bucketname/g' ./PCluster/machine-images/config/infra/files/pcluster/batch.yaml
276+
sed -i "s/tempbucket/$bucketname/g" ./PCluster/machine-images/config/infra/files/pcluster/slurm.yaml
277+
sed -i "s/tempbucket/$bucketname/g" ./PCluster/machine-images/config/infra/files/pcluster/batch.yaml
278278
tar -czf PCluster.tar.gz PCluster/*
279279
aws s3 cp ./PCluster.tar.gz s3://"$bucketname/"
280+
rm -f ./PCluster/machine-images/config/infra/files/pcluster/slurm.yaml
281+
rm -f ./PCluster/machine-images/config/infra/files/pcluster/batch.yaml
280282
rm -f PCluster.tar.gz
281283

282284
echo "Copying Database seed-data files to new bucket"

0 commit comments

Comments
 (0)