summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-update-mysql-table-for-hosted.sh
blob: f200bf3bf299e5060ed50034d401652212672a4a (plain)
1
2
3
4
5
6
7
8
9
10
11
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