mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add debugging
This commit is contained in:
parent
5b2a1320f0
commit
2f8d0eda36
@ -12,11 +12,13 @@ SCRIPT_PATH=$(realpath $0)
|
|||||||
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
||||||
|
|
||||||
# debugging
|
# debugging
|
||||||
echo "SCRIPT_PATH=$SCRIPT_PATH"
|
echo "debugging SCRIPT_PATH=$SCRIPT_PATH"
|
||||||
echo "SCRIPT_DIR=$SCRIPT_DIR"
|
echo "debugging SCRIPT_DIR=$SCRIPT_DIR"
|
||||||
|
|
||||||
# save old CONFIGURATION for later reset
|
# save old CONFIGURATION for later reset
|
||||||
export SAVE_CONFIGURATION=$CONFIGURATION
|
export SAVE_CONFIGURATION=$CONFIGURATION
|
||||||
|
# debugging
|
||||||
|
printf "debugging SAVE_CONFIGURATION=%s\n" $SAVE_CONFIGURATION
|
||||||
|
|
||||||
# export all variables in "../.env"
|
# export all variables in "../.env"
|
||||||
set -a
|
set -a
|
||||||
@ -30,7 +32,7 @@ if [[ -z ${BACKUP_CONFIGURATIONS} ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
# debugging
|
# debugging
|
||||||
printf "BACKUP_CONFIGURATIONS=%s\n" $BACKUP_CONFIGURATIONS
|
printf "debugging BACKUP_CONFIGURATIONS=%s\n" $BACKUP_CONFIGURATIONS
|
||||||
|
|
||||||
# convert configurations to array
|
# convert configurations to array
|
||||||
IFS=' ' read -a CONFIGURATIONS_ARRAY <<< "$BACKUP_CONFIGURATIONS"
|
IFS=' ' read -a CONFIGURATIONS_ARRAY <<< "$BACKUP_CONFIGURATIONS"
|
||||||
@ -101,3 +103,5 @@ done
|
|||||||
# TODO: clearily if this is the same as: $ export CONFIGURATION=${SAVE_CONFIGURATION}"
|
# TODO: clearily if this is the same as: $ export CONFIGURATION=${SAVE_CONFIGURATION}"
|
||||||
export CONFIGURATION=$SAVE_CONFIGURATION
|
export CONFIGURATION=$SAVE_CONFIGURATION
|
||||||
echo "Reset to CONFIGURATION=$CONFIGURATION"
|
echo "Reset to CONFIGURATION=$CONFIGURATION"
|
||||||
|
# debugging
|
||||||
|
printf "debugging CONFIGURATION=%s\n" $CONFIGURATION
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user