summaryrefslogtreecommitdiff
path: root/debian/ikiwiki-hosting-web.postinst
blob: bb55de81b6f4201fdb0163d695124fe362c2072e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

if [ "$1" = configure ]; then
	. /etc/ikiwiki-hosting/ikiwiki-hosting.conf || true
	if [ -n "$gitdaemondir" ] && [ -n "$gitdaemonuser" ]; then
		adduser --quiet --system --group --no-create-home --home "$gitdaemondir" "$gitdaemonuser"
	fi
fi

#DEBHELPER#

a2enmod suexec
a2enmod userdir # only so it can be forced disabled, ironically
a2enmod ssl
if which invoke-rc.d >/dev/null 2>&1; then
	invoke-rc.d apache2 restart
else
	/etc/init.d/apache2 restart
fi