Changed user check to root

This commit is contained in:
David Puglielli 2017-06-22 13:16:08 -07:00
parent dfdd99ea06
commit 3e6c99a69b
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ This test also requires root privileges to modify odbcinst.ini file on Linux.
// On travis-ci we can't use sudo
$sudo = '';
$user = posix_getpwuid(posix_geteuid());
if (strtolower($user['name']) == 'bamboo')
if (strtolower($user['name']) != 'root')
{
$sudo = 'sudo ';
}

View file

@ -11,7 +11,7 @@ This test also requires root privileges to modify odbcinst.ini file on Linux.
// On travis-ci we can't use sudo
$sudo = '';
$user = posix_getpwuid(posix_geteuid());
if (strtolower($user['name']) == 'bamboo')
if (strtolower($user['name']) != 'root')
{
$sudo = 'sudo ';
}