summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-update-mysql-table-for-hosted.sh
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-11 11:48:48 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-11 11:48:48 (GMT)
commited30bbeba26b0c39f075a4d10c9d38869cf9b123 (patch)
tree2767c7b3ca299b5e2142215ef7c740f75579fda7 /hosted-kolab/12-update-mysql-table-for-hosted.sh
parent348c0d5d9ba9e18abbd498900cca3bc6f4999e13 (diff)
parentd325046dce339333c1fd5de176eb839eb54fb7fa (diff)
downloadkolab-scripts-ed30bbeba26b0c39f075a4d10c9d38869cf9b123.tar.gz
Merge branch 'master' of ssh://git.kolab.org/git/kolab-scripts
Conflicts: package-version-matrix/package-versions-matrix.sh
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
+