summarylogtreecommitdiffstats
path: root/writefreely.install
blob: a0227a374a16e6ec3da7711b2268e7680e351f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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

	post_update
}