X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=src%2Fbackupninja.in;h=26634576c1b4655650d1963b5ce658378a981104;hp=8f7bd03f39542a1e537cb4e13fcb4850978e5a22;hb=285f38ac3154898fcc63d21a1eace97c851356d5;hpb=5d63983704cf68acc3f6d0fe9b2e9c836078ec2c diff --git a/src/backupninja.in b/src/backupninja.in index 8f7bd03..2663457 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -130,22 +130,6 @@ function setsection() { } -# -# 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 - echo $tempfile -} - - # # sets a global var with name equal to $1 # to the value of the configuration parameter $1 @@ -488,6 +472,9 @@ if [ ! -d "$configdirectory" ]; then fatal "Configuration directory '$configdirectory' not found." fi +# include shared functions +. $libdir/tools + [ -f "$logfile" ] || touch $logfile if [ "$UID" != "0" ]; then