From: Silvio Rhatto Date: Fri, 21 Mar 2014 21:33:52 +0000 (-0300) Subject: Fix hydra_database_name (2) X-Git-Tag: 0.2.2~42 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3b9850239b4ed795cdb9683a3e3beb05db8b7d5f;p=hydra.git Fix hydra_database_name (2) --- 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/' }