aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2022-10-02 08:50:27 +0200
committerGitHub <noreply@github.com>2022-10-02 08:50:27 +0200
commita206366d103d18b80a81427660deaafff35e5550 (patch)
tree56f715eaad0a0d067fe341f0d5cac0e8eae215a3 /script
parent1e652de5af96ccec4a6b384933e50717d49c8e64 (diff)
downloadsyncthing-a206366d103d18b80a81427660deaafff35e5550.tar.gz
syncthing-a206366d103d18b80a81427660deaafff35e5550.zip
docker: Fix handling of PCAP variable (fixes #8567) (#8568)
This correctly handles the absense of the PCAP environment variable, which was broken in the previous change.
Diffstat (limited to 'script')
-rwxr-xr-xscript/docker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/docker-entrypoint.sh b/script/docker-entrypoint.sh
index f56817d1b..e93e56306 100755
--- a/script/docker-entrypoint.sh
+++ b/script/docker-entrypoint.sh
@@ -4,7 +4,7 @@ set -eu
if [ "$(id -u)" = '0' ]; then
binary="$1"
- if [ "$PCAP" == "" ] ; then
+ if [ "${PCAP:-}" == "" ] ; then
# 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
# capabilities to remove, hence the || true etc.