|
@@ -2,9 +2,11 @@
|
|
|
|
|
|
set -eu
|
|
set -eu
|
|
|
|
|
|
|
|
+[ -n "${UMASK:-}" ] && umask "$UMASK"
|
|
|
|
+
|
|
if [ "$(id -u)" = '0' ]; then
|
|
if [ "$(id -u)" = '0' ]; then
|
|
binary="$1"
|
|
binary="$1"
|
|
- if [ "${PCAP:-}" == "" ] ; then
|
|
|
|
|
|
+ if [ -z "${PCAP:-}" ]; then
|
|
# If Syncthing should have no extra capabilities, make sure to remove them
|
|
# If Syncthing should have no extra capabilities, make sure to remove them
|
|
# from the binary. This will fail with an error if there are no
|
|
# from the binary. This will fail with an error if there are no
|
|
# capabilities to remove, hence the || true etc.
|
|
# capabilities to remove, hence the || true etc.
|