summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 fa21ab8..de5f3ac 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 -e 's/^\(................\)/\1/'
+ echo $1 | sed -e 's/^\(................\).*/\1/'
}