projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ldap: Add a warning when using restart with the ldapsearch method.
[matthijs/upstream/backupninja-vserver.git]
/
lib
/
tools.in
diff --git
a/lib/tools.in
b/lib/tools.in
index 2ec4da05c213df7b832006cdc6cebcc0d69cd27f..0005be943c3e3b186c2eabe1a51179615c921acb 100644
(file)
--- a/
lib/tools.in
+++ b/
lib/tools.in
@@
-10,14
+10,7
@@
# create a temporary file in a secure way.
#
function maketemp() {
# create a temporary file in a secure way.
#
function maketemp() {
- if [ -x /bin/mktemp ]
- then
- local tempfile=`mktemp /tmp/$1.XXXXXXXX`
- else
- DATE=`date`
- sectmp=`echo $DATE | /usr/bin/md5sum | cut -d- -f1`
- local tempfile=/tmp/$1.$sectmp
- fi
+ local tempfile=`mktemp /tmp/$1.XXXXXXXX`
echo $tempfile
}
echo $tempfile
}
@@
-39,7
+32,7
@@
function setsection() {
#
function getconf() {
CURRENT_PARAM=$1
#
function getconf() {
CURRENT_PARAM=$1
- ret=`
awk
-f $libdirectory/parseini S=$CURRENT_SECTION P=$CURRENT_PARAM $CURRENT_CONF_FILE`
+ ret=`
@AWK@
-f $libdirectory/parseini S=$CURRENT_SECTION P=$CURRENT_PARAM $CURRENT_CONF_FILE`
# if nothing is returned, set the default
if [ "$ret" == "" -a "$2" != "" ]; then
ret="$2"
# if nothing is returned, set the default
if [ "$ret" == "" -a "$2" != "" ]; then
ret="$2"