hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit 4121d307784d31608e167d2b0e1dd489bbdaf6b1
parent 96a8304e51cd843e34aa0ff69556edc4faf51fbf
Author: hhvn <hayden@haydenvh.com>
Date:   Wed,  3 Feb 2021 23:30:21 +0000

config.sh-->config.def.h README hbbs.sh: use a default configuration seperate to user configuration

Diffstat:
MREADME | 2++
Rconfig.sh -> config.def.sh | 0
Mhbbs.sh | 2++
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -1,5 +1,7 @@ Dependencies: dateutils, mailx (only if mail verification is turned on) +DO NOT EDIT config.def.sh - copy it to config.sh and edit that + hbbs's menu navigation was inspired quite heavily by dataswamp.org's - "what I we did that, but just all the time?" diff --git a/config.sh b/config.def.sh diff --git a/hbbs.sh b/hbbs.sh @@ -1,11 +1,13 @@ #!/bin/sh + trap 'die "SIGINT received"' 2 # xinetd trap 'die "connection lost"' 1 #SIGHUP export cwd=$(dirname $0) +[ ! -f $cwd/config.sh ] && cp $cwd/config.def.sh $cwd/config.sh . $cwd/include/common.sh . $cwd/include/log.sh . $cwd/config.sh