Skip to content

Commit

Permalink
feat: make script more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
zembrowski committed May 31, 2024
1 parent 6ab18a6 commit 6923708
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion CEZ/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*
!.gitignore
!.gitkeep
!*.sh
5 changes: 0 additions & 5 deletions CEZ/get-test-cez-certificate.sh

This file was deleted.

8 changes: 8 additions & 0 deletions get-test-cez-certificate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

TARGET_DIRECTORY="CEZ/"
CERTIFICATE_ARCHIVE_FILENAME="Test_Zertifikate.zip"

curl -sS -o "$TARGET_DIRECTORY"Test_Zertifikate.zip https://download.elster.de/download/schnittstellen/"$CERTIFICATE_ARCHIVE_FILENAME" && \
unzip -j "$TARGET_DIRECTORY$CERTIFICATE_ARCHIVE_FILENAME" -d "$TARGET_DIRECTORY" eric-zertifikate-bescheidabholung/PSE/eric_private.p12 eric-zertifikate-bescheidabholung/PSE/eric_public.cer && \
rm "$TARGET_DIRECTORY$CERTIFICATE_ARCHIVE_FILENAME"

0 comments on commit 6923708

Please sign in to comment.