diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-08 16:50:09 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-08 16:50:09 -0500 |
| commit | 59f92005a69a7a7b84f0e18cdca7efa5310611df (patch) | |
| tree | a55de5154c51eac8cf2a43707bb052ac2ea2feb6 | |
| parent | 7a24a857df26b5ea7edc74b597ee4b4275cfba84 (diff) | |
| download | webpage-59f92005a69a7a7b84f0e18cdca7efa5310611df.tar.gz webpage-59f92005a69a7a7b84f0e18cdca7efa5310611df.tar.bz2 webpage-59f92005a69a7a7b84f0e18cdca7efa5310611df.zip | |
Started on recipe gen
| -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 |
