summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilcu32018-08-31 10:09:03 -0400
committergilcu32018-08-31 10:09:03 -0400
commitb0319345cf4cfb8bc236f75583e02582843dc4b8 (patch)
tree14ff07efeb27fa72b7b4558e14449f39b302d4e0
parenta01844d68e266c94e204f7c53ef3951c4616a758 (diff)
downloadaur-b0319345cf4cfb8bc236f75583e02582843dc4b8.tar.gz
fixed bug in post install script
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--redsocks2.install8
3 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0066e24b56d..b16e24f9cb4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 58eb8c2daef..d82b78e6c28 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 b99e837d8e4..9ecf73eef36 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() {