Skip to content

Commit

Permalink
fix: temporary directory name for embed apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Apr 28, 2024
1 parent 593233d commit 25a8589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ cd ../
# Embed PHP app, if any
if [ -n "${EMBED}" ] && [ -d "${EMBED}" ]; then
tar -cf app.tar -C "${EMBED}" .
${md5binary} app.tar > app_checksum.txt
${md5binary} app.tar | awk '{printf $1}' > app_checksum.txt
fi
cd caddy/frankenphp/
Expand Down
2 changes: 1 addition & 1 deletion embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func init() {
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 := untar(appPath); err != nil {
Expand Down

0 comments on commit 25a8589

Please sign in to comment.