fix: test server deploy script
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -9,6 +9,17 @@ PROJECT_ROOT=${PROJECT_ROOT:-$(dirname -- "$SCRIPT_DIR")}
|
|||||||
DEPLOY_OWNER=${DEPLOY_OWNER:-www-data:www-data}
|
DEPLOY_OWNER=${DEPLOY_OWNER:-www-data:www-data}
|
||||||
LOCK_FILE=${LOCK_FILE:-/tmp/ktrix-test-update.lock}
|
LOCK_FILE=${LOCK_FILE:-/tmp/ktrix-test-update.lock}
|
||||||
|
|
||||||
|
# Composer and npm can invoke Git themselves, bypassing git_in(). Pass the
|
||||||
|
# deployment exceptions to every child Git process without changing global
|
||||||
|
# Git configuration.
|
||||||
|
GIT_CONFIG_COUNT=2
|
||||||
|
GIT_CONFIG_KEY_0=safe.directory
|
||||||
|
GIT_CONFIG_VALUE_0=$PROJECT_ROOT
|
||||||
|
GIT_CONFIG_KEY_1=safe.directory
|
||||||
|
GIT_CONFIG_VALUE_1=$PROJECT_ROOT/modules/*
|
||||||
|
export GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0
|
||||||
|
export GIT_CONFIG_KEY_1 GIT_CONFIG_VALUE_1
|
||||||
|
|
||||||
log()
|
log()
|
||||||
{
|
{
|
||||||
printf '%s %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$*"
|
printf '%s %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$*"
|
||||||
|
|||||||
Reference in New Issue
Block a user