diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-05 22:39:42 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-05 22:39:42 +0000 |
commit | fa919cb681747c95a31ceed508282a4e8475d0bf (patch) | |
tree | 51c12187cf002b19fa137cf9a0b97ff38cf5db53 /mkindex.sh | |
download | alpine-netboot-fa919cb681747c95a31ceed508282a4e8475d0bf.tar.bz2 alpine-netboot-fa919cb681747c95a31ceed508282a4e8475d0bf.tar.xz |
Initial commit
Diffstat (limited to 'mkindex.sh')
-rwxr-xr-x | mkindex.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mkindex.sh b/mkindex.sh new file mode 100755 index 0000000..c6dbb74 --- /dev/null +++ b/mkindex.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +htmldir="/var/www/localhost/htdocs" + +if ! command -v discount-theme >/dev/null 2>&1; then + echo "Cannot find discount-theme please install discount" + exit 1 +fi + +for i in html boot.ipxe; do + [ -L "$htmldir/$i" ] || ln -s "$(realpath $i)" "$htmldir" +done + +discount-theme -t html/page.theme \ + -o "$htmldir"/index.html README.md |