hooks can fail

This commit is contained in:
pvincent
2026-08-22 20:38:10 +04:00
parent 0c681e8acb
commit 9710fc3fd7
+3
View File
@@ -28,6 +28,9 @@ To launch optional scripts after 'upgrade', you can create any hook regarding:
2. script should be named with prefix 'after-upgrade', example: `after-upgrade-1.bash` 2. script should be named with prefix 'after-upgrade', example: `after-upgrade-1.bash`
3. script should be executable, ie: `chmod +x after-upgrade-1.bash` 3. script should be executable, ie: `chmod +x after-upgrade-1.bash`
Be aware: no matter a failure happens during processing a hook, it will get bypassed!
As so the whole process of upgrading keeps running on.
Rk: hooks.d/ respects natural order, Rk: hooks.d/ respects natural order,
ie: `after-upgrade-0.bash` will perform before `after-upgrade-1.bash` ie: `after-upgrade-0.bash` will perform before `after-upgrade-1.bash`