21 lines
505 B
Bash
21 lines
505 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ -f /home/bob/.intake-setup-done ]; then
|
||
|
echo "already done"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
# intake service gets a crontab wrapper, cheat here
|
||
|
export PATH="/run/wrappers/bin:$PATH"
|
||
|
|
||
|
mkdir -p $INTAKE_DATA_DIR
|
||
|
|
||
|
intake source add -s echo
|
||
|
intake action add -s echo -a fetch -- jq -cn '{id: env.ID, title: env.MESSAGE}'
|
||
|
intake source env -s echo --set "ID=goodbye"
|
||
|
intake source env -s echo --set "MESSAGE=Goodbye, world!"
|
||
|
intake channel add -s echo -c home
|
||
|
|
||
|
touch /home/bob/.intake-setup-done
|
||
|
echo "done"
|