From ef34074861c7256222f3c0d50ceeb7454405ab62 Mon Sep 17 00:00:00 2001 From: aboutDavid <62346025+aboutDavid@users.noreply.github.com> Date: Mon, 8 Mar 2021 21:37:20 -0500 Subject: [PATCH] Add README.md --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..14c16dd --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# guestbook +A CLI based guestbook. Orignally made for https://tilde.club/~aboutdavid/guestbook.txt + +### Setup: +```bash +# Change your directory into yours. + +# Choose any filename for the guestbook. Make sure you chmod it so only you can modify it. +touch ./public_html/guestbook.txt + +# Launch your favorite editor to modify the script. +$EDITOR ./guestbook + +# Modify the following in the guestbook script + +# The path to the guestbook file you just created +# PATH_TO_GUESTBOOK="/home/aboutdavid/public_html/guestbook.txt" + +# The path to the guestbook SCRIPT not file. +# PATH_TO_SCRIPT="/home/aboutdavid/guestbook" + +# HTTP(S) URL of the guestbook file +# URL="https://tilde.club/~aboutdavid/guestbook.txt" + +# Set the timezone. +# TIMEZONE="EST" + +# The following command will allow people to run the script and allow the script to access the directory. +chmod 701 ./guestbook +chmod u+s ./guestbook +```