fixed bugs

This commit is contained in:
Carlos Galindo 2019-10-07 13:03:16 +02:00
parent bfdadaea4b
commit 70204c7bf1
Signed by: kauron
GPG key ID: 83E68706DEE119A3
3 changed files with 6 additions and 10 deletions

View file

@ -20,18 +20,14 @@ then
. $confDir/before.sh . $confDir/before.sh
fi fi
for $conf in $(ls $confDir/db/*) for conf in $(ls $confDir/db/*)
do do
( source $conf ( source $conf; $(which backbitdb) $conf >> $logDir/$dbName.log )
$(which backbitdb) > $logDir/$dbName.log
)
done done
for $conf in $(ls $confDir/dir/*) for conf in $(ls $confDir/dir/*)
do do
( source $conf ( source $conf; $(which backbitdir) $conf >> $logDir/$name.log )
$(which backbitdir) > $logDir/$name.log
)
done done
if [ -x $confDir/after.sh ] if [ -x $confDir/after.sh ]

View file

@ -3,7 +3,7 @@
# Backup a sql database, args come from the environment # Backup a sql database, args come from the environment
# $1, if it exists, contains a list of declarations # $1, if it exists, contains a list of declarations
if [ -e $1 ]; then if [ -e "$1" ]; then
source $1 source $1
fi fi

View file

@ -3,7 +3,7 @@
# Backup a directory, args come from the environment # Backup a directory, args come from the environment
# $1, if it exists, contains a list of declarations # $1, if it exists, contains a list of declarations
if [ -e $1 ]; then if [ -e "$1" ]; then
source $1 source $1
fi fi