summarylogtreecommitdiffstats
path: root/writefreely.install
diff options
context:
space:
mode:
authorSam Whited2019-01-18 23:50:09 -0600
committerSam Whited2019-01-18 23:50:09 -0600
commitfa47f49a3bedcaed3b125cef26828919bdcf462c (patch)
tree29e086e554df9e93aa1b7f9c2e426c01acdfde33 /writefreely.install
downloadaur-fa47f49a3bedcaed3b125cef26828919bdcf462c.tar.gz
Initial commit
Diffstat (limited to 'writefreely.install')
-rw-r--r--writefreely.install5
1 files changed, 5 insertions, 0 deletions
diff --git a/writefreely.install b/writefreely.install
new file mode 100644
index 000000000000..d2550c325120
--- /dev/null
+++ b/writefreely.install
@@ -0,0 +1,5 @@
+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
+}