Last active
August 29, 2015 14:07
-
-
Save blaxter/bc50ea5dc07daaa013e7 to your computer and use it in GitHub Desktop.
Reprovision openchangedb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqladmin --defaults-file=/etc/mysql/debian.cnf --force drop openchange create openchange && \ | |
openchange_provision --openchangedb --openchangedb-uri=`cat /etc/samba/openchange.conf | grep mysql:// | head -n 1 | awk '{ print $3 }'` --firstorg="`/usr/share/zentyal/grep-redis openchange/state | cut -c 19- | ruby -rjson -e 'puts JSON.parse(ARGF.read)["Provision"]["organizationname"]'`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment