How about ending your script with a command that removes itself?
/bin/rm path_to_script
or
/bin/rm $0
Kent
On Tue, Mar 11, 2014 at 5:09 PM, nfwlpw nfw...@gmail.com wrote:
So I have a puppet module, that gets a script from files/, runs that
script, and after it's done, I'd like to remove it.
So I have a puppet module, that gets a script from files/, runs that
script, and after it's done, I'd like to remove it.
Unfortunately puppet doesn't seem to like to have 2 different File resource
aliased to the same, so I can't do
file { myfile:
ensure = present,
source =
On 11/03/14 23:09, nfwlpw wrote:
So I have a puppet module, that gets a script from files/, runs that
script, and after it's done, I'd like to remove it.
Unfortunately puppet doesn't seem to like to have 2 different File
resource aliased to the same, so I can't do
file { myfile:
ensure