1 sudo
test -f /etc
/nginx
/x509.d
/\"$site\"/key.pem
&&
2 sudo
test -f ~wiki-
$site/etc
/ssh
/id_rsa ||
3 printf '%s\n' "$(tput rev)run before: remote/runit-configure nginx -- $site$(tput sgr0)" && exit 1
5 "$tool"/local
/apt-get-install ikiwiki \
8 "$tool"/local
/adduser fcgi-
"$site" \
12 --home /home
/www
/pub
/"$site" \
15 "$tool"/local
/adduser www-
"$site" \
19 --home /home
/www
/pub
/"$site" \
22 sudo adduser fcgi-
"$site" www-
"$site"
23 sudo adduser fcgi-
"$site" wiki-
"$site"
24 #sudo adduser www-"$site"-tls www-"$site"
25 sudo
install -d -m 2770 -o wiki-
"$site" -g wiki-
"$site" \
26 /home
/lhc
/var
/ikiwiki
/remorque
28 sudo
install -d -m 2770 -o wiki-
"$site" -g wiki-
"$site" \
29 /home
/lhc
/var
/ikiwiki
/remorque
30 sudo
install -d -m 2750 -o wiki-
"$site" -g git \
32 /home
/git
/hooks
/lhc
/remorque
33 sudo
install -m 771 -o git
-g git
/dev
/stdin \
34 /home
/git
/pub
/lhc
/remorque.git
/hooks
/post-update
<<-EOF
37 # The cd below is why we must use this script.
38 # The current directory may not be accessible
39 # by the user running the ikiwiki.
40 # the execution of the ikiwiki wrapper would fail with :
41 # "E: Failed to change to directory '...': Permission denied"
44 exec /home/git/hooks/lhc/remorque/post-update.ikiwiki
47 if sudo
test -d /home
/lhc
/var
/ikiwiki
/remorque
/.git
48 then sudo
-u wiki-
"$site" \
49 sh
-c 'cd /home/lhc/var/ikiwiki/remorque && git pull -v'
51 sudo
-u wiki-
"$site" \
53 git@localhost
:lhc
/remorque \
54 /home
/lhc
/var
/ikiwiki
/remorque
/git
57 /home
/lhc
/var
/ikiwiki
/remorque
/git
/.git
* \
58 /home
/lhc
/var
/ikiwiki
/remorque
/git
/* \
59 /home
/lhc
/var
/ikiwiki
/remorque
/
60 sudo
rmdir /home
/lhc
/var
/ikiwiki
/remorque
/git
63 sudo
install -m 400 -o wiki-
"$site" -g wiki-
"$site" \
64 "$tool"/etc
/nginx
/site.d
/"$site"/ikiwiki.setup \
65 /home
/lhc
/var
/ikiwiki
/remorque
/etc
/ikiwiki.setup
66 sudo adduser wiki-
"$site" www-
"$site"
67 sudo
install -d -m 2770 -o wiki-
"$site" -g fcgi-
"$site" \
68 /home
/www
/pub
/"$site"/cgi
70 sudo
-u wiki-
"$site" ikiwiki \
72 --setup /home
/lhc
/var
/ikiwiki
/remorque
/etc
/ikiwiki.setup \