Blame
Date:
Sat Aug 27 08:45:02 2022 UTC
Message:
chmod a+r the exported parts so they can be served
01
2022-08-24
op
#!/bin/sh
02
2022-08-24
op
03
2022-08-24
op
path="$(cd $OUTDIR && mktemp parts/$MESSAGE_ID.XXXXXXXXXX)"
04
2022-08-24
op
05
2022-08-24
op
# save the input
06
2022-08-24
op
cat > "$OUTDIR/$path"
07
2022-08-27
op
chmod a+r "$OUTDIR/$path"
08
2022-08-24
op
09
2022-08-27
op
echo "<li><a href='/$path'>$(file -b "$OUTDIR/$path")</a></li>" >> $PARTS_PATH
10
2022-08-24
op
exit 0
Omar Polo