From 59f92005a69a7a7b84f0e18cdca7efa5310611df Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 8 Jan 2016 16:50:09 -0500 Subject: Started on recipe gen --- recipes.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3-70-g09d2