summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał 'rysiek' Woźniak <rysiek@hackerspace.pl>2017-02-24 12:50:46 +0100
committerMichał 'rysiek' Woźniak <rysiek@hackerspace.pl>2017-02-24 12:50:46 +0100
commit9d937f2d491fa501962b5b7f1a2b3c9b06b3d150 (patch)
tree8a4b0a1f248b8f0a2691a92b1a51a0cae36487e2
parentfd0e74813e45a6a8ab04718cb476f668b1761a36 (diff)
downloadkuvert-9d937f2d491fa501962b5b7f1a2b3c9b06b3d150.tar.gz
kuvert-9d937f2d491fa501962b5b7f1a2b3c9b06b3d150.tar.bz2
kuvert-9d937f2d491fa501962b5b7f1a2b3c9b06b3d150.tar.xz
kuvert-9d937f2d491fa501962b5b7f1a2b3c9b06b3d150.zip
run.sh: added a small delay between noticing changes in the keyring and reloading kuvert
-rw-r--r--run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index 183bcef..4a0eb96 100644
--- a/run.sh
+++ b/run.sh
@@ -194,7 +194,8 @@ function watch_pubkeys {
# if a watched event occured, redo authorized_keys
if [ $? -eq 0 ]; then
echo " +-- files in $KUVERT_GNUPG_DIR changed"
- echo " reloading kuvert config and keuring..."
+ echo " reloading kuvert config and keuring in 5s..."
+ sleep 5
su -p -c "env PATH=\"$PATH\" kuvert -r" "$KUVERT_USER"
fi
done