1
0
mirror of synced 2026-01-28 20:31:03 +00:00

Change role argument to allow supplying a full pathname to a file outside of roledir

This commit is contained in:
Nathan O'Sullivan
2010-05-05 10:40:35 +10:00
committed by Axel Beckert
parent f8f2915ec0
commit 5b420f4cc6

View File

@@ -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 )
{ {