summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/ncid/ncid.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/ncid/ncid.install')
-rwxr-xr-xabs/mv-core/ncid/ncid.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/mv-core/ncid/ncid.install b/abs/mv-core/ncid/ncid.install
new file mode 100755
index 0000000..e000b3b
--- /dev/null
+++ b/abs/mv-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 $*