1 some stuff I need to incorporate later on:
3 the blog post-update git hook:
10 export GIT_WORK_TREE="$blog_dir"
14 git add metadata/author metadata/url metadata/title metadata/*.tmpl metadata/automatic_metadata captchas/linkable/*
15 count=$(ls -1 metadata/*.automatic_metadata 2>/dev/null | wc -l)
16 if [ "$count" != 0 ]; then
17 git add metadata/*.automatic_metadata
19 status=$(git status -s)
20 n_updates=$(printf "$status" | grep -vE '^\?\?' | wc -l)
21 if [ "$n_updates" -gt 0 ]; then
22 git commit -a -m 'Update metadata'
26 furthermore, the url_catcher virtualenv run.sh script needs this (to compile uwsgi):
28 apt-get install python3.4-dev
33 # /etc/systemd/system/url_catcher.service
36 Description=URL catcher
41 ExecStart=/bin/sh -c 'LC_ALL=en_US.UTF8 screen -d -m ~/url_catcher.sh'
44 WantedBy=multi-user.target