summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-update-mysql-table-for-hosted.sh
diff options
context:
space:
mode:
authorroot <root@kolab.example.org>2012-09-06 11:37:45 (GMT)
committerroot <root@kolab.example.org>2012-09-06 11:37:45 (GMT)
commitca1dbbd1c050ab3ab15af37000fd2abc836c5782 (patch)
tree8bbcd02535074d0a104d6066078f56d21aef98de /hosted-kolab/12-update-mysql-table-for-hosted.sh
parentd0cbf8bd59e5386912d0ddfda8ac5d7774eba3ce (diff)
downloadkolab-scripts-ca1dbbd1c050ab3ab15af37000fd2abc836c5782.tar.gz
Add some hosted-kolab scripts
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
+