diff --git a/libs/gst/helpers/ptp_helper_post_install.sh b/libs/gst/helpers/ptp_helper_post_install.sh index 5e867735f7..eefe1c9d64 100755 --- a/libs/gst/helpers/ptp_helper_post_install.sh +++ b/libs/gst/helpers/ptp_helper_post_install.sh @@ -11,14 +11,14 @@ case "$with_ptp_helper_permissions" in setuid-root) echo "$0: permissions before: " ls -l "$ptp_helper" - chown root "$ptp_helper" - chmod u+s "$ptp_helper" + chown root "$ptp_helper" || true + chmod u+s "$ptp_helper" || true echo "$0: permissions after: " ls -l "$ptp_helper" ;; capabilities) echo "Calling $setcap cap_net_bind_service,cap_net_admin+ep $ptp_helper" - $setcap cap_net_bind_service,cap_net_admin+ep "$ptp_helper" + $setcap cap_net_bind_service,cap_net_admin+ep "$ptp_helper" || true ;; *) echo "$0 ERROR: unexpected permissions value '$with_ptp_helper_permissions'";