diff options
author | Brian Evans <grknight@gentoo.org> | 2018-07-13 10:41:07 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-07-13 10:41:07 -0400 |
commit | 29c300918339a74463b24c5c9ed517286675ddf2 (patch) | |
tree | 504e090c2c76cf68ae1e65fb12dd9fe388593a65 /scripts/update-venus | |
parent | Update links and use https where appropriate. (diff) | |
download | planet-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-x | scripts/update-venus | 6 |
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 |