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"