summaryrefslogtreecommitdiffstats
path: root/abs/core/ncid/ncid.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-05-10 20:06:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-05-10 20:06:06 (GMT)
commit2b532b540f448f02d7aee7ff04fa3d31655e7f8f (patch)
tree61dc3cbb6ce683a7d9d5fed2af090f63a086e86b /abs/core/ncid/ncid.install
parent42ae9b94604db5f6bd515863e0ffd3a44b6c866e (diff)
downloadlinhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.zip
linhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.tar.gz
linhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.tar.bz2
ncid: reintroduction to repo
Diffstat (limited to 'abs/core/ncid/ncid.install')
-rw-r--r--abs/core/ncid/ncid.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/ncid/ncid.install b/abs/core/ncid/ncid.install
new file mode 100644
index 0000000..e000b3b
--- /dev/null
+++ b/abs/core/ncid/ncid.install
@@ -0,0 +1,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 $*