2021-01-04 13:53:39 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
[ "$HOSTNAME" != lime2 ] || exit 1
|
|
|
|
|
2021-01-05 11:11:51 +01:00
|
|
|
echo "Updating index.html"
|
2021-01-04 13:53:39 +01:00
|
|
|
|
2021-01-05 11:11:51 +01:00
|
|
|
awk -v header="$(<./header.html)" '{sub(/===HEADER===/,header)} 1' ./index.template.html |
|
|
|
|
awk -v footer="$(<./footer.html)" '{sub(/===FOOTER===/,footer)} 1' > ./index.html
|
|
|
|
|
|
|
|
git add ./index.html
|
2021-01-04 13:53:39 +01:00
|
|
|
|
|
|
|
exit 0
|