summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-12-23 11:50:11 -0800
committerAndy Weidenbaum2015-12-23 11:50:11 -0800
commit598cc34bba2cd8e2681b9cff40aadaf6102b58b1 (patch)
tree36714f17b4d21b8b61e17ce9ffa150c72f8b1090
parentbe3ec33c000daab6e32ad4860f91fc0dae61c694 (diff)
downloadaur-598cc34bba2cd8e2681b9cff40aadaf6102b58b1.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 d37d0995951..0af6c356f40 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:35 UTC 2015
pkgbase = libbitcoin-server-git
pkgdesc = Bitcoin Full Node and Query Server
pkgver = 20151221
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