rancid icon indicating copy to clipboard operation
rancid copied to clipboard

Add new variable PRECOMMIT_HOOK

Open jvaubourg opened this issue 4 years ago • 0 comments

I'm proposing a new variable PRECOMMIT_HOOK, to let admins execute commands on the configs before the commit. I need this to avoid unecessary commits (with their mails), juste because the occupation of the nvram slightly changed.

Example of lines which can be annoying:

sed '/^!Flash: harddisk:.*total/d' -i configs/*
sed '/^!Flash: nvram:.*total/d' -i configs/*
sed '/^!\s\+Not ready set/d' -i configs/*

I currently cheat by doing that in a DIFFSCRIPT script, but it's not really appropriate.

Thanks for your work!

jvaubourg avatar Dec 03 '20 22:12 jvaubourg