From 0b38d6d63542d8773c546c8223d02402e74a4483 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Tue, 16 May 2023 22:08:07 -0400 Subject: [PATCH] Update to grab git commit in docker info. --- deployment/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/update.sh b/deployment/update.sh index 1045ccf..0c4213a 100755 --- a/deployment/update.sh +++ b/deployment/update.sh @@ -68,7 +68,7 @@ source ./project/domain_env.sh # now we want to switch the git HEAD of the project subdirectory to the # version of code that was last used -GIT_COMMIT_ON_REMOTE_HOST="$(ssh ubuntu@$WWW_FQDN docker info | grep PROJECT_COMMIT)" +GIT_COMMIT_ON_REMOTE_HOST="$(ssh ubuntu@$WWW_FQDN docker info | grep -o 'PROJECT_COMMIT=[a-zA-Z0-9]*' | cut -d'=' -f2)" cd project/ echo "INFO: switch the 'project' repo to commit prior commit '$GIT_COMMIT_ON_REMOTE_HOST'" echo " This allows Sovereign Stack to can grab a backup using the version of the code"