1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
post_install() { mysql -u root -e 'create database ncid;' echo installing the default database mysql ncid < /tmp/ncid.sql mysql < /tmp/ncidpermissions.sql rm /tmp/ncid.sql rm /tmp/ncidpermissions.sql } post_upgrade() { echo "nothing to do" } op=$1 shift $op $*