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
|
# 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/
|
||||||
|
2
embed.go
2
embed.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user