X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Fupdate_therapy.sh;h=c72d0408de3af39e0c5606a72f7f9476e460c25f;hb=be67cb59512145a0fa5b8c6686996f3876618570;hp=0474b3b3be6d608f4db5975b93b03dc1b21c2c4a;hpb=cd0d72e6e5e47ebc3c2d5dd723aa9244748eeafc;p=lobster diff --git a/therapies/update_therapy.sh b/therapies/update_therapy.sh index 0474b3b..c72d040 100755 --- a/therapies/update_therapy.sh +++ b/therapies/update_therapy.sh @@ -125,6 +125,8 @@ if [ "$(POST autosubmit)" = "true" ]; then msg="$(transid "$tpyfile")" printf 'HTTP/1.1 200 OK\r\nContent-Length: %i\r\n\r\n%s' \ "${#msg}" "${msg}" +elif [ "$(POST vcfreturn)" ]; then + REDIRECT "/cards/#${tpy%.*}.vcf" else REDIRECT "/therapies/${tpy%.*}/${tpy#*.}" fi