summarylogtreecommitdiffstats
path: root/bozohttpd.install
diff options
context:
space:
mode:
Diffstat (limited to 'bozohttpd.install')
-rw-r--r--bozohttpd.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/bozohttpd.install b/bozohttpd.install
new file mode 100644
index 000000000000..6303e629c788
--- /dev/null
+++ b/bozohttpd.install
@@ -0,0 +1,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
+}