start.sh 462 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

www_dir=/var/lib/lurker/www
static_dir=/var/lib/lurker-www

echo "Fixing symlinks..." >&2

if [ ! -e ${www_dir}/imgs ]; then
    ln -sf /usr/share/lurker/www/imgs ${www_dir}/imgs
fi
if [ ! -e ${www_dir}/index.html ]; then
    ln -sf ${static_dir}/index.html ${www_dir}/index.html
fi
if [ ! -e ${www_dir}/ui ]; then
    ln -sf ${static_dir}/ui ${www_dir}/ui
fi
if [ ! -e ${www_dir}/lurker.docroot ]; then
    touch ${www_dir}/lurker.docroot
fi

exit 0