diff --git a/sip-jibri/rootfs/etc/cont-init.d/10-config b/sip-jibri/rootfs/etc/cont-init.d/10-config index 5986846..efbfa53 100644 --- a/sip-jibri/rootfs/etc/cont-init.d/10-config +++ b/sip-jibri/rootfs/etc/cont-init.d/10-config @@ -1,5 +1,17 @@ #!/usr/bin/with-contenv bash +# Check if the SYS_ADMIN cap is set +if ! capsh --has-p=cap_sys_admin; then + echo "Required capability SYS_ADMIN is missing" + exit 1 +fi + +# Check if /dev/shm is large enough (2GB at least) +if ! shm-check; then + echo "/dev/shm must be at least 2GB in size" + exit 1 +fi + if [[ -z $SIP_JIBRI_XMPP_PASSWORD || -z $JIBRI_XMPP_PASSWORD ]]; then echo 'FATAL ERROR: Sip-Jibri XMPP password and auth password must be set' exit 1