From 35223421abab71aa4b99d6b0abd9201ab721c0eb Mon Sep 17 00:00:00 2001 From: tu1h Date: Mon, 27 May 2024 10:40:53 +0800 Subject: [PATCH] Make embedded-registry script reentrant Signed-off-by: tu1h --- pkg/combustion/templates/26-embedded-registry.sh.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/combustion/templates/26-embedded-registry.sh.tpl b/pkg/combustion/templates/26-embedded-registry.sh.tpl index b255e692..bba141c3 100644 --- a/pkg/combustion/templates/26-embedded-registry.sh.tpl +++ b/pkg/combustion/templates/26-embedded-registry.sh.tpl @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail -mkdir /opt/hauler +mkdir -p /opt/hauler cp {{ .RegistryDir }}/hauler /opt/hauler/hauler cp {{ .RegistryDir }}/*-{{ .RegistryTarSuffix }} /opt/hauler/ @@ -22,4 +22,4 @@ Restart=on-failure WantedBy=multi-user.target EOF -systemctl enable eib-embedded-registry.service \ No newline at end of file +systemctl enable eib-embedded-registry.service