Change role argument to allow supplying a full pathname to a file outside of roledir
This commit is contained in:
committed by
Axel Beckert
parent
f8f2915ec0
commit
5b420f4cc6
@@ -3497,7 +3497,8 @@ sub runRoleScript
|
|||||||
#
|
#
|
||||||
# The complete path to the role script
|
# The complete path to the role script
|
||||||
#
|
#
|
||||||
my $file = $roleDir . "/" . $role;
|
my $file = $role;
|
||||||
|
$file = $roleDir . "/" . $file unless $file =~ /\//;
|
||||||
|
|
||||||
if ( -x $file )
|
if ( -x $file )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user