Compare commits
No commits in common. "2d76b37e5de6ba0842263cfcb7dc8007d0ab35d0" and "ef4d27eb91b08b3dba8f5a1ff58d404e00b246a4" have entirely different histories.
2d76b37e5d
...
ef4d27eb91
@ -90,7 +90,7 @@ clone_customer_repository () {
|
||||
# check if the directory is empty. If so, clone the
|
||||
# customer repository
|
||||
if ! find ./$WORKSPACE_DIR -mindepth 1 -maxdepth 1 | read; then
|
||||
log_info "$func:${LINENO} cloning ${1} into ${PWD}/${WORKSPACE_DIR}..."
|
||||
log_info "$func:${LINENO} cloning ${1} ..."
|
||||
if ! cd "./$WORKSPACE_DIR"; then
|
||||
update_psa_clone_error # message to ISMAS
|
||||
log_fatal "$func:${LINENO} can not change to $WORKSPACE_DIR"
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
source ./log_helpers
|
||||
|
||||
if [ "${news_from_ismas_sourced:-1}" = "1" ]; then # include only once
|
||||
readonly news_from_ismas_sourced=${BASH_SOURCE[0]}
|
||||
if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
|
||||
readonly APISM_DIRECT_PORT=7778
|
||||
|
||||
updates_available () {
|
||||
|
@ -31,6 +31,7 @@ WORKING_DIRECTORY=${PWD}
|
||||
while test $# -gt 0; do
|
||||
case $1 in
|
||||
--maintenance | -m )
|
||||
shift
|
||||
MAINTENANCE="YES"
|
||||
;;
|
||||
--file | --fil | --fi | --f | -file | -fil | -fi | -f )
|
||||
|
@ -67,12 +67,14 @@ update_psa() {
|
||||
|
||||
# Fetch new updates (using git). but only when repository has already been
|
||||
# cloned.
|
||||
if ! fetch_customer_updates; then
|
||||
log_error "$func:${LINENO}: fetch no data for $customer_id"\
|
||||
"-> no files to update -> no psa update"
|
||||
update_psa_false_alarm \
|
||||
"update request, but no change in $CUSTOMER_REPOSITORY_PATH"
|
||||
# TODO
|
||||
if [ $GIT_CLONE_EXECUTED -eq 0 ]; then
|
||||
if ! fetch_customer_updates; then
|
||||
log_error "$func:${LINENO}: fetch no data for $customer_id"\
|
||||
"-> no files to update -> no psa update"
|
||||
update_psa_false_alarm \
|
||||
"update request, but no change in $CUSTOMER_REPOSITORY_PATH"
|
||||
# TODO
|
||||
fi
|
||||
fi
|
||||
|
||||
update_psa_pull_customer_repository # message to ISMAS
|
||||
|
Loading…
x
Reference in New Issue
Block a user