summarylogtreecommitdiffstats
path: root/bozohttpd.install
blob: 6303e629c788f71cefdfd5eb9d9eeb62b1f0471f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  if [ ! -f "${pkgdir}"/srv/http/www/index.html ]; then
    ln -s "${pkgdir}"/srv/http/www/sample_index.html "${pkgdir}/srv/http/www/index.html"
  fi
  if [ ! -f "${pkgdir}"/srv/http/www/index.php ]; then
    ln -s "${pkgdir}"/srv/http/www/sample_index.php "${pkgdir}/srv/http/www/index.php"
  fi
	echo
	echo "*** USAGE ***"
	echo
	echo "Web server root is /srv/http/www ."
	echo "Use 'systemctl start bozohttpd.service' to start the web server."
	echo "Instructions on how to enable CGI and PHP support, dir indexing and much more"
	echo "are in /usr/lib/systemd/system/bozohttpd.service ."
	echo
}

post_upgrade() {
    post_install
}