Skip to content

Commit

Permalink
change flow to create and apply
Browse files Browse the repository at this point in the history
  • Loading branch information
topahadzi committed Apr 18, 2023
1 parent eb08d98 commit 96c191d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ BASE_FOLDER=${BASE_FOLDER:-$DEFAULT_BASE_FOLDER}
inotifywait -m -r $BASE_FOLDER -e moved_to |
while read path action file; do
DIR=$(basename "$path")
HOST_ID="${input_str%%_*}"
CERT_NAME="${input_str#*_}"
HOST_ID="${DIR%%_*}"
CERT_NAME="${DIR#*_}"
CERT_FOLDER="$BASE_FOLDER/$CERT_NAME"
CERT_PATH="$CERT_FOLDER/tls.crt"
KEY_PATH="$CERT_FOLDER/tls.key"
Expand Down

0 comments on commit 96c191d

Please sign in to comment.