"one-shot" init_hook #1681
Unanswered
VortexAcherontic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here there recently I ran into an issue with one of my boxes created from an assemble file. Because it seems distrobox executes the init_hooks every time the box is started?
This lead to an issue because one of the init_hooks used wget to download a package from an remote URL. That URL however changed and hence the wget command was hitting a 404 and returned a non zero exit code. This caused the distrobox to fail launching.
Is there a way of having "one-shot" or "setup-only" init_hooks. Something which only get's executed once at the time the container is either launched for the first time or created? I wasn't able to find anything regarding this in the README. Therefore I thought asking here.
Beta Was this translation helpful? Give feedback.
All reactions