diff options
author | gilcu3 | 2018-08-31 10:09:03 -0400 |
---|---|---|
committer | gilcu3 | 2018-08-31 10:09:03 -0400 |
commit | b0319345cf4cfb8bc236f75583e02582843dc4b8 (patch) | |
tree | 14ff07efeb27fa72b7b4558e14449f39b302d4e0 | |
parent | a01844d68e266c94e204f7c53ef3951c4616a758 (diff) | |
download | aur-b0319345cf4cfb8bc236f75583e02582843dc4b8.tar.gz |
fixed bug in post install script
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | redsocks2.install | 8 |
3 files changed, 6 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = redsocks2-git pkgdesc = redsocks2 adapted to compile with openssl 1.0 pkgver = 0.66.r39.gc9618cd - pkgrel = 3 + pkgrel = 4 url = https://github.com/semigodking/redsocks install = redsocks2.install arch = i686 @@ -5,7 +5,7 @@ pkgname=redsocks2-git pkgver=0.66.r39.gc9618cd -pkgrel=3 +pkgrel=4 pkgdesc='redsocks2 adapted to compile with openssl 1.0' arch=('i686' 'x86_64') url='https://github.com/semigodking/redsocks' diff --git a/redsocks2.install b/redsocks2.install index b99e837d8e43..9ecf73eef36c 100644 --- a/redsocks2.install +++ b/redsocks2.install @@ -6,13 +6,13 @@ add_redsocks_user() { systemd-tmpfiles --create redsocks2.conf } -post_install() { - setcap cap_net_bind_service,cap_net_admin+ep usr/bin/redsocks2 2>/dev/null +post_install_permission () { + setcap cap_net_bind_service,cap_net_admin+ep usr/bin/redsocks2 2>/dev/null } post_install() { add_redsocks_user - post_install + post_install_permission cat << EOF To launch redsocks2: @@ -29,7 +29,7 @@ EOF post_upgrade() { add_redsocks_user - post_install + post_install_permission } post_remove() { |