diff options
| -rw-r--r-- | recipes.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
