From f77733e447777c26d900a795ca0abbd3159b02f8 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 18 Jul 2019 19:35:26 -0400 Subject: [PATCH] wget -nc (no clobber) so repeat runs are very fast --- roles/httpd/templates/refresh-wiki-docs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/httpd/templates/refresh-wiki-docs.sh b/roles/httpd/templates/refresh-wiki-docs.sh index 5c3b77fb7..46e153bb1 100755 --- a/roles/httpd/templates/refresh-wiki-docs.sh +++ b/roles/httpd/templates/refresh-wiki-docs.sh @@ -37,11 +37,11 @@ lynx -reload -source https://github.com/XSCE/xsce/wiki/IIAB-6.2-Release-Notes > lynx -reload -source https://github.com/XSCE/xsce/blob/release-6.2/ReleaseNotes6.0.md > $DESTPATH/ReleaseNotes6.0.html lynx -reload -source https://github.com/XSCE/xsce/blob/release-6.2/ReleaseNotes6.1.md > $DESTPATH/ReleaseNotes6.1.html -# Get raspberry pi resources -wget -P $DESTPATH https://www.raspberrypi.org/magpi-issues/Beginners_Guide_v1.pdf -wget -P $DESTPATH https://dn.odroid.com/IoT/other_doc.pdf +# Download Raspberry Pi guides +wget -nc -P $DESTPATH https://www.raspberrypi.org/magpi-issues/Beginners_Guide_v1.pdf +wget -nc -P $DESTPATH https://dn.odroid.com/IoT/other_doc.pdf -# update the link to pi resources on the info splash page +# Update Raspberry Pi guide links on main page (http://box/info) sed -i -r "s|https://www.raspberrypi.org/magpi-issues/Beginners_Guide_v1.pdf|Beginners_Guide_v1.pdf|g" $DESTPATH/index.html sed -i -r "s|https://dn.odroid.com/IoT/other_doc.pdf|other_doc.pdf|g" $DESTPATH/index.html