summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <Apickx@cogarr.org>2016-01-08 16:49:26 -0500
committerAlexander Pickering <Apickx@cogarr.org>2016-01-08 16:49:26 -0500
commite94cb7536affcd00927a3b828e74be765e68f93b (patch)
treea55de5154c51eac8cf2a43707bb052ac2ea2feb6
parentb71bf0152aa91e94eb65880eda609db9494f20cf (diff)
parent59f92005a69a7a7b84f0e18cdca7efa5310611df (diff)
downloadwebpage-e94cb7536affcd00927a3b828e74be765e68f93b.tar.gz
webpage-e94cb7536affcd00927a3b828e74be765e68f93b.tar.bz2
webpage-e94cb7536affcd00927a3b828e74be765e68f93b.zip
Merge branch 'development'
-rw-r--r--recipes.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes.sh b/recipes.sh
index 84f75d7..7a462ce 100644
--- a/recipes.sh
+++ b/recipes.sh
@@ -1,6 +1,15 @@
echo "Content-type: text/html"
echo ""
+ls -l /home/steam/server_1/garrysmod/data/ws_recipedata.txt > ./fileparts/recipenow.txt
+
+#If the recipe list is more than a day old, retrive a new one
+if ! ( cmp recipelast.txt recipenow.txt ) then
+ cp /home/steam/server_1/garrysmod/data/ws_recipedata.txt ./fileparts/
+ mv ./fileparts/recipenow.txt /fileparts/recipelast.txt
+fi
+
cat ./fileparts/header.html
cat ./fileparts/recipes.html
+cat ./fileparts/ws_recipedata.txt
cat ./fileparts/footer.html