summarylogtreecommitdiffstats
path: root/bozohttpd.install
blob: 557b93f2cdab31d5906240aa0f87cedfbdd2ba6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
	[ ! -f /srv/http/index.html ] && echo "<html><body><h2>Server online.</h2></body></html>" >/srv/http/index.html
	[ ! -f /srv/http/index.php ] && echo "<?php phpinfo(); ?>" >/srv/http/index.php
	echo
	echo "*** USAGE ***"
	echo
	echo "'systemctl start bozohttpd.service' starts the web server."
	echo "Web server root is /srv/http. CGI dir is /usr/lib/cgi-bin."
	echo "To enable CGI, PHP, and dir indexing"
	echo "modify /usr/lib/systemd/system/bozohttpd.service ."
	echo
}

post_upgrade() {
	post_install
}