diff --git a/src/minimal_overlay/bundles/nweb/bundle.sh b/src/minimal_overlay/bundles/nweb/bundle.sh index d653e2fd5..d2349039c 100755 --- a/src/minimal_overlay/bundles/nweb/bundle.sh +++ b/src/minimal_overlay/bundles/nweb/bundle.sh @@ -29,6 +29,8 @@ install -m755 nweb "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/usr/bin/nweb" install -d -m755 "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www" # FHS compliant location install -m644 "$SRC_DIR/index.html" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www/index.html" install -m644 "$SRC_DIR/favicon.ico" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/srv/www/favicon.ico" +install -d -m755 "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/etc" +install -m755 "$SRC_DIR/nweb.sh" "$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs/etc/nweb.sh" echo "nweb has been installed." -echo "run 'nweb 80 /srv/www &' on your minimal system to run it" +echo "it will be autostarted on boot" diff --git a/src/minimal_overlay/bundles/nweb/index.html b/src/minimal_overlay/bundles/nweb/index.html index d99085b24..19920ae66 100644 --- a/src/minimal_overlay/bundles/nweb/index.html +++ b/src/minimal_overlay/bundles/nweb/index.html @@ -3,9 +3,10 @@ nweb -

nweb test page

+

nweb test page


It works!

+

You can edit this file in /srv/www/index.html

All rights go to the original author of nweb Nigel Griffiths nag@uk.ibm.com

Feedback is welcome to Nigel Griffiths nag@uk.ibm.com

diff --git a/src/minimal_overlay/bundles/nweb/nweb.sh b/src/minimal_overlay/bundles/nweb/nweb.sh new file mode 100644 index 000000000..ac5389dcf --- /dev/null +++ b/src/minimal_overlay/bundles/nweb/nweb.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "starting nweb on port 80 serving /srv/www" +nweb 80 /srv/www