diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 13:47:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 13:47:24 +0000 |
commit | 335889000fb2fd3b912ff759226e2f071f377e8e (patch) | |
tree | ea5c13319b9115c55db7a9e49365dd1902c1ad30 /lib/container/start | |
parent | Adding upstream version 20200121. (diff) | |
download | open-infrastructure-compute-tools-335889000fb2fd3b912ff759226e2f071f377e8e.tar.xz open-infrastructure-compute-tools-335889000fb2fd3b912ff759226e2f071f377e8e.zip |
Adding upstream version 20200830.upstream/20200830
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/container/start')
-rwxr-xr-x | lib/container/start | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/container/start b/lib/container/start index f89944d..5938193 100755 --- a/lib/container/start +++ b/lib/container/start @@ -482,6 +482,15 @@ case "${SYSTEMCTL}" in true) systemctl start ${PROGRAM}@${NAME}.service + # Post hooks + for FILE in "${HOOKS}/post-${COMMAND}".* "${HOOKS}/${NAME}.post-${COMMAND}" + do + if [ -x "${FILE}" ] + then + "${FILE}" + fi + done + exit 0 ;; esac @@ -498,14 +507,5 @@ case "${START}" in *) # Run ${SETARCH} systemd-nspawn --keep-unit ${BIND} ${BIND_RO} ${BOOT} ${CAPABILITY} ${DIRECTORY} ${DROP_CAPABILITY} ${MACHINE} ${NETWORK_VETH_EXTRA} ${LINK_JOURNAL} ${REGISTER} - - # Post hooks - for FILE in "${HOOKS}/post-${COMMAND}".* "${HOOKS}/${NAME}.post-${COMMAND}" - do - if [ -x "${FILE}" ] - then - "${FILE}" - fi - done ;; esac |