Skip to content

Instantly share code, notes, and snippets.

@blaxter
Last active August 29, 2015 14:07
Show Gist options
  • Save blaxter/bc50ea5dc07daaa013e7 to your computer and use it in GitHub Desktop.
Save blaxter/bc50ea5dc07daaa013e7 to your computer and use it in GitHub Desktop.
Reprovision openchangedb
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