diff options
| author | Robert Günzler <r@gnzler.io> | 2023-09-25 11:56:34 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2023-09-25 11:56:34 +0200 |
| commit | f5c219983c0f60a07f1bd52b6f6071e86f35455e (patch) | |
| tree | b7520a02b9822481f29aea4ccb404744a73414b1 /os/etc/cron.daily/rbw-sync | |
| parent | 91ba318df1ff9b04d08af373ae904f61a91bf489 (diff) | |
add os config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'os/etc/cron.daily/rbw-sync')
| -rwxr-xr-x | os/etc/cron.daily/rbw-sync | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/os/etc/cron.daily/rbw-sync b/os/etc/cron.daily/rbw-sync new file mode 100755 index 0000000..f386f42 --- /dev/null +++ b/os/etc/cron.daily/rbw-sync @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +/etc/s6-rc/runas -- sh -s <<-EOF + id=\$(notify-send -i \$(iconez -sn server-security) "rbw" "<i>syncing database</i>" -pt 0) + trap '{ clear-notification \$id; }' EXIT + rbw sync +EOF |