diff options
Diffstat (limited to 'redsocks2.install')
-rw-r--r-- | redsocks2.install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redsocks2.install b/redsocks2.install index ed641f16a9e6..b99e837d8e43 100644 --- a/redsocks2.install +++ b/redsocks2.install @@ -7,7 +7,12 @@ add_redsocks_user() { } post_install() { + setcap cap_net_bind_service,cap_net_admin+ep usr/bin/redsocks2 2>/dev/null +} + +post_install() { add_redsocks_user + post_install cat << EOF To launch redsocks2: @@ -24,6 +29,7 @@ EOF post_upgrade() { add_redsocks_user + post_install } post_remove() { |