I have a case where I need to copy the target of a symlink rather than the symlink itself, but the copy: action in cf-2 doesn't seem to allow this. Is there some way to get it to copy the target of the symlink rather than the symlink itself?
As a workaround, I've updated the copy statement to explicitly list the target of the symlink, but that's going to break as soon as the administrator of that code updates the symlink to point to the new version. For example, a group in a different team (so I can't alter their behavior) maintains their software like so: ./ ./script.v6.1 ./script.v6.2 ./script.v7.0 ./script.current -> script.v7.0 This script needs to be copied to the local filesystem, so I'm using a copy: statement that copies "script.current" to a destination in the local filesystem. But it's literally copying the symlink, not the target of that symlink. -- Paul Krizak 7171 Southwest Pkwy MS B200.3A Senior Systems Engineer Austin, TX 78735 Advanced Micro Devices Desk: (512) 602-8775 Linux/Unix Systems Engineering Cell: (512) 791-0686 Silicon Design Division Fax: (512) 602-0468 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine