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