1
1

Update to grab git commit in docker info.

This commit is contained in:
Derek Smith 2023-05-16 22:08:07 -04:00
parent beb1d7b5a4
commit 0b38d6d635
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -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"