diff options
author | Jakob Borg <jakob@kastelo.net> | 2022-10-02 08:50:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 08:50:27 +0200 |
commit | a206366d103d18b80a81427660deaafff35e5550 (patch) | |
tree | 56f715eaad0a0d067fe341f0d5cac0e8eae215a3 /script | |
parent | 1e652de5af96ccec4a6b384933e50717d49c8e64 (diff) | |
download | syncthing-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-x | script/docker-entrypoint.sh | 2 |
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. |