Last active
January 19, 2021 20:04
-
-
Save robinwl/a8c71e03b6865d719d7e to your computer and use it in GitHub Desktop.
cowsay webserver index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/5 * * * * www-data /usr/local/bin/generate_index.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "<html><pre>$(fortune -a |cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1))</pre></html>" > /usr/share/nginx/www/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment