Use exec to replace the current process

This commit is contained in:
Fierelier 2023-11-29 05:17:20 +01:00
parent def3e7d0f3
commit 3c04bdf643
1 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
unshare --mount --map-user="$UNSHH_USER_ID" --map-group="$UNSHH_GROUP_ID" -R "$UNSHH_CHROOT" "${UNSHH_COMMAND[@]}"
#unshare --mount --map-root-user -R "$UNSHH_CHROOT" "${UNSHH_COMMAND[@]}"
exec unshare --mount --map-user="$UNSHH_USER_ID" --map-group="$UNSHH_GROUP_ID" -R "$UNSHH_CHROOT" "${UNSHH_COMMAND[@]}"
#exec unshare --mount --map-root-user -R "$UNSHH_CHROOT" "${UNSHH_COMMAND[@]}"