test/RUN_ONCE_AS_SUDO_FOR_TESTS.sh
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 28 Jan 2019 14:04:12 +0100
changeset 3246 ec48ea509c8d
parent 3244 bf242e94441c
permissions -rwxr-xr-x
Added dir creation and script for gpg socket dir to default
     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)