Wrong variable name (BASE_DIR instead of SERVICE_BASE) in a check.
This commit is contained in:
@ -11,6 +11,8 @@
|
|||||||
#
|
#
|
||||||
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
||||||
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
|
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||||
|
# 2025-05-21 v0.3.1
|
||||||
|
# fix: Wrong variable name (BASE_DIR instead of SERVICE_BASE) in a check.
|
||||||
# 2025-05-20 v0.3
|
# 2025-05-20 v0.3
|
||||||
# fix: Wrong output redirection order (>/dev/null 2>&1 was reversed).
|
# fix: Wrong output redirection order (>/dev/null 2>&1 was reversed).
|
||||||
# 2024-08-25 v0.2
|
# 2024-08-25 v0.2
|
||||||
@ -134,7 +136,7 @@ fi
|
|||||||
|
|
||||||
# The service must be running - silently gives up here if not.
|
# The service must be running - silently gives up here if not.
|
||||||
#
|
#
|
||||||
[[ -z "$(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandstring ps --services --filter "status=running")" ]] \
|
[[ -z "$(cd "$SERVICE_BASE"; "$DOCKER_COMPOSE" $commandstring ps --services --filter "status=running")" ]] \
|
||||||
&& exit 1
|
&& exit 1
|
||||||
|
|
||||||
# Attempts the backup commit.
|
# Attempts the backup commit.
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#
|
#
|
||||||
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
||||||
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
|
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||||
|
# 2025-05-21 v0.3.1
|
||||||
|
# fix: Wrong variable name (BASE_DIR instead of SERVICE_BASE) in a check.
|
||||||
# 2025-05-20 v0.3
|
# 2025-05-20 v0.3
|
||||||
# fix: The docker itself was missing from the dependency list :(.
|
# fix: The docker itself was missing from the dependency list :(.
|
||||||
# fix: Wrong output redirection order (>/dev/null 2>&1 was reversed).
|
# fix: Wrong output redirection order (>/dev/null 2>&1 was reversed).
|
||||||
@ -135,7 +137,7 @@ fi
|
|||||||
|
|
||||||
# The service must be running - silently gives up here if not.
|
# The service must be running - silently gives up here if not.
|
||||||
#
|
#
|
||||||
[[ -z "$(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandstring ps --services --filter "status=running")" ]] \
|
[[ -z "$(cd "$SERVICE_BASE"; "$DOCKER_COMPOSE" $commandstring ps --services --filter "status=running")" ]] \
|
||||||
&& exit 1
|
&& exit 1
|
||||||
|
|
||||||
# Attempts the backup commit.
|
# Attempts the backup commit.
|
||||||
@ -149,6 +151,7 @@ if [ ! -d "$GITDIR/.git" ]; then
|
|||||||
fi
|
fi
|
||||||
# Stages all the files and non-empty folders.
|
# Stages all the files and non-empty folders.
|
||||||
"$GIT" --git-dir="$GITDIR/.git" --work-tree="$SOURCEDIR" add . >/dev/null
|
"$GIT" --git-dir="$GITDIR/.git" --work-tree="$SOURCEDIR" add . >/dev/null
|
||||||
|
|
||||||
# Stores the file system metadata as well, if the tool has been installed.
|
# Stores the file system metadata as well, if the tool has been installed.
|
||||||
if [ ! -z "$(which metastore)" -a -x "$(which metastore)" ]; then
|
if [ ! -z "$(which metastore)" -a -x "$(which metastore)" ]; then
|
||||||
# This commamd silently creates the metastore file if it doesnt' exist yet.
|
# This commamd silently creates the metastore file if it doesnt' exist yet.
|
||||||
|
Reference in New Issue
Block a user