diff options
author | mrxx | 2015-07-13 14:14:27 +0200 |
---|---|---|
committer | mrxx | 2015-07-13 14:14:27 +0200 |
commit | 84a09cc426d74d91f52ef59b2e6fd68a23b3f744 (patch) | |
tree | 04763f4702b592e252c950055956731fb9de1d49 /bozohttpd.install | |
parent | 159d741318f677f4e0d817081344e298507da531 (diff) | |
download | aur-84a09cc426d74d91f52ef59b2e6fd68a23b3f744.tar.gz |
Moved CGI directory to /usr/lib/cgi-bin, added samples
Diffstat (limited to 'bozohttpd.install')
-rw-r--r-- | bozohttpd.install | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/bozohttpd.install b/bozohttpd.install index 6303e629c788..557b93f2cdab 100644 --- a/bozohttpd.install +++ b/bozohttpd.install @@ -1,20 +1,16 @@ 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 + [ ! -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 "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 "'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 + post_install } |