summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-07-13 10:41:07 -0400
committerBrian Evans <grknight@gentoo.org>2018-07-13 10:41:07 -0400
commit29c300918339a74463b24c5c9ed517286675ddf2 (patch)
tree504e090c2c76cf68ae1e65fb12dd9fe388593a65 /scripts/update-venus
parentUpdate links and use https where appropriate. (diff)
downloadplanet-29c300918339a74463b24c5c9ed517286675ddf2.tar.gz
planet-29c300918339a74463b24c5c9ed517286675ddf2.tar.bz2
planet-29c300918339a74463b24c5c9ed517286675ddf2.zip
Fix archives by generating a static HTML file
Diffstat (limited to 'scripts/update-venus')
-rwxr-xr-xscripts/update-venus6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/update-venus b/scripts/update-venus
index faa7f4e..08f05ee 100755
--- a/scripts/update-venus
+++ b/scripts/update-venus
@@ -48,3 +48,9 @@ cp -a ${BASE_DIR}/htdocs/index.html \
${BASE_DIR}/htdocs/archives/$(date +%G)/${DATE}.html
cp -a ${BASE_DIR}/htdocs/universe/index.html \
${BASE_DIR}/htdocs/universe/archives/$(date +%G)/${DATE}.html
+cd ${BASE_DIR}/htdocs/archives
+php index.php > index.html.gen
+[[ $? == 0 ]] && mv index.html.gen index.html
+cd ${BASE_DIR}/htdocs/universe/archives
+php index.php > index.html.gen
+[[ $? == 0 ]] && mv index.html.gen index.html