X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fnew_attendee.sh;fp=actions%2Fnew_attendee.sh;h=d2091913dc0f7589b6ca1e2900f5351ac36f5957;hp=0000000000000000000000000000000000000000;hb=19a85441a8f173c3d2cd3d29fd7d95d2b471bb3c;hpb=be5f12e43f464b3ca924b2131fe74d6cf24981a1 diff --git a/actions/new_attendee.sh b/actions/new_attendee.sh new file mode 100644 index 0000000..d209191 --- /dev/null +++ b/actions/new_attendee.sh @@ -0,0 +1,26 @@ +#!/bin/zsh + +cgi_post + +uid=$(dbus-uuidgen) +card="${uid}.vcf" + +cardfile="vcard/$card" +tempfile="temp/$card" + +touch "$cardfile" + +cat >"$tempfile" <