pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit 836200baba870f1028eaf901796df504ac2f6d2f
parent 9455254e502d7130a660f849802387294ea4b5e4
Author: pyratebeard <root@pyratebeard.net>
Date:   Tue, 21 Dec 2021 12:09:33 +0000

change to web directory before doing work

Diffstat:
Mpyratelog.sh | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyratelog.sh b/pyratelog.sh @@ -1,5 +1,7 @@ #!/bin/bash +WEBDIR="/var/www/html" + rssgen() { [ -f rss.xml ] && rm -f rss.xml cat >> rss.xml << EOF @@ -20,6 +22,7 @@ xmlencode() { } initialise() { + cd ${WEBDIR} # generate rss.xml file rssgen