summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-11-04 13:34:42 +0100
committerAndreas Mair <amair.sob@googlemail.com>2005-11-04 13:34:42 +0100
commita21372e5196c7a69ec68296d0377b8516b2bbbf1 (patch)
treeaeb3410b48bf706198869e08e9c85a40b8a2c7d1 /install.sh
parente1f97fae0ca169df8c293d5d090b58da072fabc5 (diff)
downloadvdradmin-am-0.97-am3.4.2rc3.tar.gz
vdradmin-am-0.97-am3.4.2rc3.tar.bz2
2005-11-04: 0.97-am3.4.2rc3v0.97-am3.4.2rc3
- Set "LANGUAGE" environment variable to "" on startup, so it causes no problems with language setting in VDRAdmin. - Added caching of listing of recordings. Can be adjusted by "CACHE_REC_TIMEOUT=number of minutes" in vdradmind.conf. Defaults to "60", "0" disables caching. - Remember sorting when toggling in timer or autotimer list. - New configuration option for Timers: don't add summary. - Email notification for AutoTimer can be set in configuration menu. - Optimized AutoTimer matching a little bit. - Reworked detection of another VDRAdmin process if pid file exists. - No more config settings that require a VDRAdmin restart. - Find "sendEmail" program in $PATH.
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 2f1f0d3..243e3cc 100755
--- a/install.sh
+++ b/install.sh
@@ -90,6 +90,7 @@ function makeDir()
{
[ -z "$1" ] && return 1
local DIR=$1
+ local MUST_CREATE=${2:-0}
if [ ! -e "$DIR" ]; then
mkdir -p "$DIR"
if [ $? -ne 0 ]; then
@@ -102,6 +103,9 @@ function makeDir()
echo "$DIR exists but is no directory!"
echo "Aborting..."
return 1
+ elif [ -d $DIR -a $MUST_CREATE = 1 ]; then
+ echo "$DIR exists. Please remove it before calling install.sh!"
+ echo "Aborting..."
fi
return 0
@@ -115,8 +119,8 @@ function doInstall()
perlModules
- makeDir $LIBDIR && cp -r template lib $LIBDIR || exit 1
- makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL README $DOCDIR || exit 1
+ makeDir $LIBDIR 1 && cp -r template lib $LIBDIR || exit 1
+ makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL README* REQUIREMENTS FAQ $DOCDIR || exit 1
makeDir $MANDIR && cp vdradmind.pl.1 $MANDIR || exit 1
makeDir $ETCDIR || exit 1