Skip to content

Commit 22f323f

Browse files
authored
Merge pull request #27 from Datatamer/startup_script_bug
DSD-2258: bug: fix startup script
2 parents f3589ff + 3a5aca8 commit 22f323f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# GCP Tamr VM module
22

3+
## v2.1.1 - April 28th 2023
4+
* Startup script checks for the correct unify start script
5+
* Startup script avoids permission errors in creating custom config
6+
37
## v2.1.0 - April 25th 2023
48
* Following optional input variables now available
59
* metadata

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0
1+
2.1.1

templates/startup_script.sh.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ EOF
1313
)
1414

1515
# check if tamr has been installed on the VM, if not download and install it
16-
if [[ ! -f ${tamr_home_directory}/tamr/start.sh ]]; then
16+
if [[ ! -f ${tamr_home_directory}/tamr/start-unify.sh ]]; then
1717
# download tamr install
1818
sudo -S -u tamr -i /bin/bash -c 'gsutil cp ${tamr_zip_uri} ${tamr_home_directory}/unify.zip'
1919
# unzip and install unify
2020
sudo -S -u tamr -i /bin/bash -c 'unzip ${tamr_home_directory}/unify.zip -d ${tamr_home_directory}'
2121

2222
# apply custom config
23-
sudo -S -u tamr -i /bin/bash -c 'echo -e "$${TAMR_CONFIG}" > ${tamr_home_directory}/tamr/conf/unify-custom-config.yaml'
23+
TAMR_CONFIG=$TAMR_CONFIG sudo -Eu tamr /bin/bash -c 'echo -e "$${TAMR_CONFIG}" > ${tamr_home_directory}/tamr/conf/unify-custom-config.yaml'
2424
chown -R tamr:tamr ${tamr_home_directory}/tamr/conf/unify-custom-config.yaml
2525
fi
2626

0 commit comments

Comments
 (0)