Fix regex when removing a sql request in zm_create.sql file
parent
74f08787d4
commit
aa31c9b292
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue