test/RUN_ONCE_AS_SUDO_FOR_TESTS.sh
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 28 Jan 2019 13:44:20 +0100
branchsync
changeset 3245 4ef46e3bb562
parent 3244 bf242e94441c
permissions -rwxr-xr-x
Fix for long paths on tests - run script once if you're having problems
     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)