test/RUN_ONCE_AS_SUDO_FOR_TESTS.sh
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 18 Nov 2019 15:34:21 +0100
changeset 4205 f75e9274551f
parent 3244 bf242e94441c
permissions -rwxr-xr-x
Ugh. Old API.
     1 #!/bin/bash
     2 if [[ $EUID > 0 ]]
     3   then echo "This script must be run with sudo."
     4   exit
     5 fi
     6 
     7 mkdir -p /run/user/$(id -u $SUDO_USER)
     8 chown $SUDO_USER /run/user/$(id -u $SUDO_USER)