mirror of
https://github.com/dunglas/frankenphp
synced 2024-11-21 23:30:45 +00:00
fix: temporary directory name for embed apps
This commit is contained in:
parent
593233db17
commit
25a858954c
@ -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/
|
||||
|
2
embed.go
2
embed.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user