Need for cleaning mechanisms in install scripts?
Opened this issue · 3 comments
mbivert commented
It happened, but is it still the case, that the install scripts needs to be re-runed?
If so, can we setup a trap on SIGINT or a clean.sh
script to undo everything
which as been done by the scripts?
acieroid commented
This would indeed be useful for the postinst.sh and more importantly the postinst-setup.sh. I also think the postinst-setup.sh could be split into multiple smaller scripts (eg. one to create the master jail, one to install nginx in the master jail, etc.). When a script fails, we just need to clean what it did and we can restart the post-installation from there.