diff --git a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_updatesite/templates/run_nsfodp.sh.j2 b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_updatesite/templates/run_nsfodp.sh.j2 index 8011a8ea..ece4cba6 100755 --- a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_updatesite/templates/run_nsfodp.sh.j2 +++ b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_updatesite/templates/run_nsfodp.sh.j2 @@ -23,7 +23,12 @@ mkdir -p $TMP_DIR # unzip and setup project cd $TMP_DIR -unzip $ZIP_FILE +unzip $ZIP_FILE || EXIT_CODE=$? +if [ "$EXIT_CODE" -gt 1]; then + echo "unzip failed with exit code $EXIT_CODE"; + exit $EXIT_CODE; +fi +sudo chown -R vagrant.vagrant . # Read default user password PASSWORD=$(jq -r '.serverSetup | .admin | .password' {{ domino_home_dir }}/setup.json) diff --git a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/deploy_html.sh.j2 b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/deploy_html.sh.j2 index decc87f0..d4feab9c 100755 --- a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/deploy_html.sh.j2 +++ b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/deploy_html.sh.j2 @@ -30,7 +30,12 @@ fi sudo su -c "mkdir -p '$TARGET_FULL'" - domino # unzip the application -sudo su -c "unzip -q -d '$TARGET_FULL' '$ZIP_FILE_CHOWN'" - domino +sudo su -c "unzip -q -d '$TARGET_FULL' '$ZIP_FILE_CHOWN'" - domino || EXIT_CODE=$? +if [ "$EXIT_CODE" -gt 1]; then + echo "unzip failed with exit code $EXIT_CODE"; + exit $EXIT_CODE; +fi +sudo chown -R domino.domino "$TARGET_FULL" # Cleanup sudo rm -f "$ZIP_FILE_CHOWN" diff --git a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/run_dxl_importer.sh.j2 b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/run_dxl_importer.sh.j2 index 89b15386..fb568d55 100755 --- a/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/run_dxl_importer.sh.j2 +++ b/Assets/provisioners/demo-tasks/0.1.20/scripts/ansible/roles/domino_vagrant_rest_api/templates/run_dxl_importer.sh.j2 @@ -21,7 +21,12 @@ mkdir -p $TMP_DIR # unzip and setup project cd $TMP_DIR -unzip $ZIP_FILE +unzip $ZIP_FILE || EXIT_CODE=$? +if [ "$EXIT_CODE" -gt 1]; then + echo "unzip failed with exit code $EXIT_CODE"; + exit $EXIT_CODE; +fi +sudo chown -R vagrant.vagrant . ln -s {{ service_home_dir }}/notes.ini # Update Domino path