]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix bash specific shell
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 5 Nov 2008 10:53:18 +0000 (10:53 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 5 Nov 2008 10:53:18 +0000 (10:53 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7976 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/make_mysql_tables.in
bacula/src/cats/make_postgresql_tables.in

index bc807c81f0992cf21a753d55f8e532e0177ed1b5..8bf8a34116f8296ea7a0a66655ce9b5681abf39f 100644 (file)
@@ -3,7 +3,7 @@
 # shell script to create Bacula MySQL tables
 #
 bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-"@db_name@"}
 
 if $bindir/mysql $* -f <<END-OF-DATA
 USE ${db_name};
index 08a223fbd0ff2138d944bd0ee7e8beb301e1fe07..19fc997553edc4a4a1e8941fc95fbfa29bc6101a 100644 (file)
@@ -3,7 +3,7 @@
 # shell script to create Bacula PostgreSQL tables
 #
 bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-"@db_name@"}
 
 $bindir/psql -f - -d ${db_name} $* <<END-OF-DATA