@@ -, +, @@ to be in gzip format to an _uncompressed_ SQL database dump gzip: /path/to/dump.sql: not in gzip format compressed with gzip" in koha-sites.conf --- debian/scripts/koha-create | 2 +- debian/templates/koha-sites.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) --- a/debian/scripts/koha-create +++ a/debian/scripts/koha-create @@ -684,7 +684,7 @@ then if [ -e "$DEFAULTSQL" ] then # Populate the database with default content. - zcat "$DEFAULTSQL" | + zcat -f "$DEFAULTSQL" | sed "s/__KOHASITE__/koha_$name/g" | mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpwd" "$mysqldb" --- a/debian/templates/koha-sites.conf +++ a/debian/templates/koha-sites.conf @@ -17,6 +17,7 @@ OPACSUFFIX="" # # DEFAULTSQL: filename # Specify an SQL file with default data to load during instance creation +# The SQL file can be optionally compressed with gzip # default: (empty) DEFAULTSQL="" --