summarylogtreecommitdiffstats
path: root/writefreely.install
blob: 270f9a027cb2abe1ce4f6e68f6b0c2ea69d1382e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_update() {
	echo "---"
	echo "After updating, backup the database then run run 'writefreely db migrate'."
	echo "---"
}

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