summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-21 18:30:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-21 18:30:16 -0300
commit22db890684f6bec66a805310a3494e6a3f6a7403 (patch)
tree952598f4a020207cf8f0554da38009d7811b9a3e /lib
parentdecdfd3b67bb35ce4ef8032c3276868e8177c1c3 (diff)
downloadhydra-22db890684f6bec66a805310a3494e6a3f6a7403.tar.gz
hydra-22db890684f6bec66a805310a3494e6a3f6a7403.tar.bz2
Fix hydra_database_name
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index c056c01..fa21ab8 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -172,5 +172,5 @@ function hydra_backup_restore_database {
# Return a normalized database name
function hydra_database_name {
# MySQL 16 chars limit
- echo $1 | sed -r 's/(^>.{16}).*/\1/'
+ echo $1 | sed -e 's/^\(................\)/\1/'
}