summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-12-23 11:50:11 -0800
committerAndy Weidenbaum2015-12-23 11:50:11 -0800
commit3fc5d4c0dda298c052c25a8c89b14238e55ea447 (patch)
treeabec6ed3393672d006ad5c685ecef13e4e2b3285
parentef5bf2f8556416907f2bc1dcf16d9ba87211a181 (diff)
downloadaur-3fc5d4c0dda298c052c25a8c89b14238e55ea447.tar.gz
add post_upgrade hook
-rw-r--r--.SRCINFO2
-rw-r--r--bs.install6
2 files changed, 7 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 90ec811f469..b4ecb26468a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Wed Dec 23 19:28:30 UTC 2015
+# Wed Dec 23 19:49:34 UTC 2015
pkgbase = libbitcoin-server
pkgdesc = Bitcoin Full Node and Query Server
pkgver = 2.2.0
diff --git a/bs.install b/bs.install
index 994e00ce0e6..97acf9cf09a 100644
--- a/bs.install
+++ b/bs.install
@@ -11,6 +11,12 @@ post_install() {
printf "%b\n" "$xx"
}
+post_upgrade() {
+ _mkuser
+ chown -R $_bs_user:$_bs_group /etc/bs /srv/bs /var/log/bs
+ printf "%b\n" "$xx"
+}
+
post_remove() {
_rmuser
rm -rf /etc/bs /srv/bs /var/log/bs