summarylogtreecommitdiffstats
path: root/writefreely.install
blob: b9e1f143000dd3018898928420731f8503307e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
post_update() {
	echo "---"
	echo "After updating, run 'writefreely --migrate' to update the database."
	echo "---"
}

post_install() {
  cd /var/lib/writefreely
  sudo -u writefreely /usr/bin/writefreely -c /etc/writefreely/config.ini -gen-keys
  sudo -u writefreely /usr/bin/writefreely -c /etc/writefreely/config.ini -init-db
}