mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-29 11:55:03 +01:00
729c83ee72
* stack-based execution model, documented in documentation * circbuf for capturing hook output * built-in hooks for postgres and mysql * refactor docs, too much info on the jobs page, too difficult to discover snapshotting & hooks Co-authored-by: Ross Williams <ross@ross-williams.net> Co-authored-by: Christian Schwarz <me@cschwarz.com> fixes #74
12 lines
309 B
Bash
Executable File
12 lines
309 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
if [ "$ZREPL_HOOKTYPE" = "pre_testing" ]; then
|
|
>&2 echo "TEST ERROR $ZREPL_HOOKTYPE $ZREPL_FS@$ZREPL_SNAPNAME"
|
|
exit 1
|
|
elif [ "$ZREPL_HOOKTYPE" = "post_testing" ]; then
|
|
echo "TEST $ZREPL_HOOKTYPE $ZREPL_FS@$ZREPL_SNAPNAME"
|
|
else
|
|
printf "Unknown hook type: %s" "$ZREPL_HOOKTYPE"
|
|
exit 255
|
|
fi
|