Skip to content

Commit

Permalink
fix: update start up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Apr 16, 2024
1 parent b443c9c commit a1e0d58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
7 changes: 0 additions & 7 deletions scripts/load_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ pip -q install s3cmd

FILES="htsnexus_test_NA12878.bam htsnexus_test_NA12878.bam.bai htsnexus_test_NA12878.bam.blocks.yaml htsnexus_test_NA12878.bam.gzi"
for file in ${FILES}; do
#curl -s -L -o "$file" "https://github.com/ga4gh/htsget-refserver/raw/main/data/gcp/gatk-test-data/wgs_bam/$file"
curl -s -L -o "$file" "https://github.com/umccr/htsget-rs/raw/main/data/bam/$file"

#case $file in (*.bai)
# newname="$(basename "$file" .bai).bam.bai"
# mv "$file" "$newname"
# file="$newname"
# ;;
#esac

yes | /shared/crypt4gh encrypt -p /shared/c4gh.pub.pem -f "$file"
ENC_SHA=$(sha256sum "$file.c4gh" | cut -d' ' -f 1)
Expand Down
8 changes: 1 addition & 7 deletions scripts/make_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,10 @@ socket_timeout = 30
EOD

## create crypt4gh key
#if [ ! -f "/shared/c4gh.sec.pem" ]; then
# curl -s -L https://github.com/neicnordic/crypt4gh/releases/download/v"${C4GH_VERSION}"/crypt4gh_linux_x86_64.tar.gz | tar -xz -C /shared/ && chmod +x /shared/crypt4gh
# /shared/crypt4gh generate -n /shared/c4gh -p c4ghpass
#fi
if [ ! -f "/shared/c4gh.sec.pem" ]; then
curl -s -L https://github.com/neicnordic/crypt4gh/releases/download/v"${C4GH_VERSION}"/crypt4gh_linux_x86_64.tar.gz | tar -xz -C /shared/ && chmod +x /shared/crypt4gh
# /shared/crypt4gh generate -n /shared/c4gh -p c4ghpass
/shared/crypt4gh generate -n /shared/c4gh -p c4ghpass
fi
cp /scripts/c4gh.sec.pem /shared/c4gh.sec.pem
cp /scripts/c4gh.pub.pem /shared/c4gh.pub.pem

## create TLS certificates
bash /scripts/certs/make_certs.sh
Expand Down

0 comments on commit a1e0d58

Please sign in to comment.