summaryrefslogtreecommitdiff
path: root/watch
blob: 41ad68b7eda1c421ce50dd7998038477cfb24ce2 (plain)
1
2
3
4
5
#!/bin/sh
while inotifywait -qq -r ./ -e create,delete,modify; do
    rsync -a --exclude='.git/' --exclude='watch' --exclude='generate-digest.rb' --exclude='.gitignore' --exclude='TODO' --filter=":- .gitignore" ./ /srv/social/
    sudo systemctl restart social.service
done