From 29dfcc23e8e6fe07b1e8b901dc0d11de3413c68f Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Fri, 4 Dec 2015 02:55:50 +0100 Subject: Config file inclusion. The quick and dirty method. --- bin/mp3dir2html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/mp3dir2html b/bin/mp3dir2html index ce90f0b..c22509e 100755 --- a/bin/mp3dir2html +++ b/bin/mp3dir2html @@ -3,12 +3,16 @@ # Paste a file here that contains the HTML code to be placed _before_ the MP3 tag list. DIRLISTHEAD="/etc/mp3dir2html/head.php" -# Regular expression that is to be excluded in the final listing -DIRLISTEX='^Susperia|^B.*hse.*nkelz' - +# Regular expression that is to be excluded in the final listing should exist as +# DIRLISTEX='what.*ever|another.*one' in CONFFILE +CONFFILE='/etc/mp3dir2html/mp3dir2html.conf' # CORE SCRIPT FROM HERE. DON'T FIDDLE IF YOU DON'T KNOW WHAT YOU'RE DOING. +DIRLISTEX="0x1fedbeef" +[ -r "$CONFFILE" ] && . "$CONFFILE" || echo "WARNING: $CONFFILE not readable..." +echo "$DIRLISTEX" + function m3l_help { echo "Usage: $(basename $0) [options]";echo echo "Options:" -- cgit v1.2.3