We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6599e commit 2da3064Copy full SHA for 2da3064
try
@@ -233,10 +233,10 @@ EOF
233
# --pid: create a new process namespace (needed fr procfs to work right)
234
# --fork: necessary if we do --pid
235
# "Creation of a persistent PID namespace will fail if the --fork option is not also specified."
236
- if [ "$EXTRA_NS" = "net" ]; then
237
- unshare --mount --map-root-user --user --pid --fork --net "$mount_and_execute"
238
- else
+ if [ -z "$EXTRA_NS" ]; then
239
unshare --mount --map-root-user --user --pid --fork "$mount_and_execute"
+ else
+ unshare --mount --map-root-user --user --pid --fork --net "$mount_and_execute"
240
fi
241
TRY_EXIT_STATUS=$?
242
0 commit comments