Hmm, unnecessary

This commit is contained in:
Parnell Springmeyer 2017-01-26 00:58:44 -08:00
parent a4f905afc2
commit 21368c4c67
No known key found for this signature in database
GPG key ID: DCCF89258EAD874A

View file

@ -22,7 +22,6 @@ let
, source ? null
, owner ? "nobody"
, group ? "nogroup"
, setcap ? false
}: ''
cp ${setcapWrappers}/bin/${program}.wrapper ${permissionsWrapperDir}/${program}
@ -36,13 +35,7 @@ let
#
# Only set the capabilities though if we're being told to
# do so.
${
if setcap then
''
${pkgs.libcap.out}/bin/setcap "cap_setpcap,${capabilities}" ${permissionsWrapperDir}/${program}
''
else ""
}
${pkgs.libcap.out}/bin/setcap "cap_setpcap,${capabilities}" ${permissionsWrapperDir}/${program}
# Set the executable bit
chmod u+rx,g+x,o+x ${permissionsWrapperDir}/${program}