Fix regex when removing a sql request in zm_create.sql file

pull/634/head
Emmanuel Papin 2014-12-12 13:22:33 +01:00
parent 74f08787d4
commit aa31c9b292
1 changed files with 2 additions and 2 deletions

View File

@ -96,12 +96,12 @@ override_dh_install:
#
# Remove unneeded sql requests
# dbconfig will create the underlying database
sed -i "/^ *CREATE DATABASE/d" \
sed -i "/^ *CREATE DATABASE /d" \
debian/zoneminder/usr/share/dbconfig-common/data/zoneminder/install/mysql
sed -i "/^ *USE /d" \
debian/zoneminder/usr/share/dbconfig-common/data/zoneminder/install/mysql
#
# Install sql update files for dbconfig
# Symlink sql update files for dbconfig
for sqlfile in db/zm_update-*.sql; do \
lnk=`echo $$sqlfile | sed "s/^db\/zm_update-\(.*\)\.sql/\1/"`; \
dh_link usr/share/zoneminder/$$sqlfile \