summaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.pre-install
blob: 6f8eaae18cca3c599e5d1b5e09b25dcdf48f5198 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# move config if needed and create compat symlink
if [ -f /etc/mini_httpd.conf ] && ! [ -L /etc/mini_httpd.conf ]; then
	mkdir -p /etc/mini_httpd
	mv /etc/mini_httpd.conf /etc/mini_httpd/mini_httpd.conf \
		&& ln -s mini_httpd/mini_httpd.conf /etc/mini_httpd.conf
fi
exit 0