fix: temporary directory name for embed apps

This commit is contained in:
Kévin Dunglas 2024-04-27 18:42:34 +02:00
parent 593233db17
commit 25a858954c
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ cd ../
# Embed PHP app, if any # Embed PHP app, if any
if [ -n "${EMBED}" ] && [ -d "${EMBED}" ]; then if [ -n "${EMBED}" ] && [ -d "${EMBED}" ]; then
tar -cf app.tar -C "${EMBED}" . tar -cf app.tar -C "${EMBED}" .
${md5binary} app.tar > app_checksum.txt ${md5binary} app.tar | awk '{printf $1}' > app_checksum.txt
fi fi
cd caddy/frankenphp/ cd caddy/frankenphp/

View File

@ -32,7 +32,7 @@ func init() {
return return
} }
appPath := filepath.Join(os.TempDir(), "frankenphp_"+strings.TrimSuffix(string(embeddedAppChecksum[:]), "\n")) appPath := filepath.Join(os.TempDir(), "frankenphp_"+string(embeddedAppChecksum))
if _, err := os.Stat(appPath); os.IsNotExist(err) { if _, err := os.Stat(appPath); os.IsNotExist(err) {
if err := untar(appPath); err != nil { if err := untar(appPath); err != nil {