diff options
author | thnkman <thnkman@proton.me> | 2024-01-07 12:17:50 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-13 07:14:11 +0700 |
commit | b69d14e222cba2b7c55e62b3312ee67ae1c9039a (patch) | |
tree | b11993ae106f6084d98fd61bce37d01332d8ab62 /network/dnscrypt-proxy/doinst.sh | |
parent | d7aedcd9cd90798db71f77108d27a07192f1f721 (diff) |
network/dnscrypt-proxy: Updated for v2.1.5
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dnscrypt-proxy/doinst.sh')
-rw-r--r-- | network/dnscrypt-proxy/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/network/dnscrypt-proxy/doinst.sh b/network/dnscrypt-proxy/doinst.sh new file mode 100644 index 0000000000000..c6488756566f7 --- /dev/null +++ b/network/dnscrypt-proxy/doinst.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# dnscrypt-proxy writes files to its data directories after +# dropping privileges. This ensures $DNSCRYPT_USER can write +# files to these directories, without having to change default +# root:root in slackware. +# +# This is a workaround, might not be a elegant solution. + +PRGNAM=dnscrypt-proxy +DNSCRYPT_UID=293 +DNSCRYPT_GID=293 + +chown $DNSCRYPT_UID:$DNSCRYPT_GID etc/$PRGNAM/* + +setfacl -m u:$DNSCRYPT_UID:rwx etc/$PRGNAM +setfacl -m u:$DNSCRYPT_UID:rwx var/run/$PRGNAM +setfacl -m u:$DNSCRYPT_UID:rwx var/log/$PRGNAM |