]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix hydra_database_name (2)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 21:33:52 +0000 (18:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Mar 2014 21:33:52 +0000 (18:33 -0300)
lib/hydra/backup

index fa21ab801c157ce8fa9e819e9e4f84d1003d6466..de5f3ac7d8c42747c49d6bafdf23b69ea75f05f4 100644 (file)
@@ -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/'
 }