Pritup pres PHP a docker
This commit is contained in:
committed by
lachtan obecny
parent
5b8e535be0
commit
8f5a69c86f
11
app/templates/config.sh.tpl
Normal file
11
app/templates/config.sh.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly SOURCE_URL="{{SOURCE_URL}}"
|
||||
readonly TARGET_PATH="{{TARGET_PATH}}"
|
||||
|
||||
mkdir -p "$(dirname "$TARGET_PATH")"
|
||||
curl -fsSL "$SOURCE_URL" -o "$TARGET_PATH"
|
||||
echo "Configuration installed: $TARGET_PATH"
|
||||
{{POST_INSTALL}}
|
||||
Reference in New Issue
Block a user