diff options
author | redfish | 2018-02-03 13:58:31 -0500 |
---|---|---|
committer | redfish | 2018-02-03 13:58:31 -0500 |
commit | 03c8142df0c2cff27de94f0c8c52f8cb4bf57575 (patch) | |
tree | 30ea8c04031a3d7bc2fcda3c8a5939c6b54f5318 | |
parent | d596f4b82316756b2587bf6c4db48ed9622aace6 (diff) | |
download | aur-03c8142df0c2cff27de94f0c8c52f8cb4bf57575.tar.gz |
bump to 0.6.1
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | zeronet.install | 16 |
3 files changed, 14 insertions, 8 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Wed Oct 18 04:49:54 UTC 2017 +# Sat Feb 3 18:58:25 UTC 2018 pkgbase = zeronet-git pkgdesc = Decentralized websites using Bitcoin crypto and the BitTorrent network. - pkgver = 0.6.0 + pkgver = 0.6.1 pkgrel = 1 url = https://zeronet.io/ install = zeronet.install @@ -4,7 +4,7 @@ pkgname='zeronet-git' _gitname='ZeroNet' _gitroot='https://github.com/HelloZeroNet/ZeroNet.git' -pkgver=0.6.0 +pkgver=0.6.1 pkgrel=1 arch=('any') url="https://zeronet.io/" diff --git a/zeronet.install b/zeronet.install index 382f443f2fa9..488a98f5163b 100644 --- a/zeronet.install +++ b/zeronet.install @@ -34,12 +34,18 @@ post_install() { echo ">>> python2 zeronet.py --config_file /etc/zeronet.conf ..." } +## each separate version number must be less than 3 digit wide ! +function version { echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; } + post_upgrade() { chown -R zeronet:zeronet /opt/zeronet - echo ">>> UPDATE in 0.6.0: no longer need auth dir (Tor bug 19953 fixed):" - echo ">>> Change or add to /etc/tor/torrc:" - echo ">>> DataDirectoryGroupReadable 1" - echo ">>> CookieAuthFile /var/lib/tor/control_auth_cookie" - echo ">>> Run: sudo rm -r /var/lib/tor-auth && sudo systemctl restart tor" + if [ "$(version "$(echo $2 | sed s/\.r.*//)")" -lt "$(version 0.6.0)" ] + then + echo ">>> UPDATE in 0.6.0: no longer need auth dir (Tor bug 19953 fixed):" + echo ">>> Change or add to /etc/tor/torrc:" + echo ">>> DataDirectoryGroupReadable 1" + echo ">>> CookieAuthFile /var/lib/tor/control_auth_cookie" + echo ">>> Run: sudo rm -r /var/lib/tor-auth && sudo systemctl restart tor" + fi } |