10 lines
281 B
Bash
Executable file
10 lines
281 B
Bash
Executable file
#!/bin/bash
|
|
|
|
[ "$HOSTNAME" != lime2 ] || exit 1
|
|
|
|
awk -v header="$(<./header.html)" '{sub(/===HEADER===/,header)} 1' ./index.template.html > index.tmp.html
|
|
awk -v footer="$(<./footer.html)" '{sub(/===FOOTER===/,footer)} 1' ./index.tmp.html > index.html
|
|
|
|
rm ./index.tmp.html
|
|
|
|
exit 0
|