|
Lines 44-50
mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )"
Link Here
|
| 44 |
mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" |
44 |
mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" |
| 45 |
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" |
45 |
mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" |
| 46 |
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" |
46 |
mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" |
| 47 |
backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' $kohaconfig )" |
47 |
backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' $kohaconfig || true )" |
| 48 |
[ -z "$backupdir" ] && backupdir="/var/spool/koha/$name" |
48 |
[ -z "$backupdir" ] && backupdir="/var/spool/koha/$name" |
| 49 |
dbdump="$backupdir/$name-$date.sql.gz" |
49 |
dbdump="$backupdir/$name-$date.sql.gz" |
| 50 |
echo "* DB to $dbdump" |
50 |
echo "* DB to $dbdump" |
| 51 |
- |
|
|