#!/bin/bash # Author: Carlos Rodriguez-Fernandez t_Log "Running $0 - podman socket tests" if [ "$centos_ver" -lt 8 ] ; then t_Log "SKIP $0: only run on centos stream 8 or greater" exit 0 fi useradd podman-remote-test loginctl enable-linger podman-remote-test output_file=$(mktemp) trap "loginctl terminate-user podman-remote-test && loginctl disable-linger podman-remote-test && sleep 1 && userdel -r podman-remote-test && rm -f ${output_file}" EXIT # give time to loginctl linger sleep 3 su -l podman-remote-test > ${output_file} 2>&1 <