summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-update-mysql-table-for-hosted.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/12-update-mysql-table-for-hosted.sh')
-rwxr-xr-xhosted-kolab/12-update-mysql-table-for-hosted.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/hosted-kolab/12-update-mysql-table-for-hosted.sh b/hosted-kolab/12-update-mysql-table-for-hosted.sh
new file mode 100755
index 0000000..f200bf3
--- /dev/null
+++ b/hosted-kolab/12-update-mysql-table-for-hosted.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+ . ./settings.sh
+
+if [ -f "`ls -1 /usr/share/kolab-webadmin/doc/kolab_hosting-*.sql`" ]; then
+ sql_file="`ls -1 /usr/share/kolab-webadmin/doc/kolab_hosting-*.sql`"
+else
+ sql_file="`ls -1 /usr/share/doc/kolab-webadmin-*/kolab_hosting-*.sql`"
+fi
+
+mysql --user=kolab --password=Welcome2KolabSystems kolab < $sql_file
+