From 770453c5418c260670f9035011ad141257c2143d Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Sun, 8 May 2022 18:10:50 -0700 Subject: [PATCH] bug fixes --- cookbooks/chef-workstation/recipes/pre-install.bash | 13 +++++++++++++ roles/nam/roles/mac-cli-apps.bash | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 cookbooks/chef-workstation/recipes/pre-install.bash diff --git a/cookbooks/chef-workstation/recipes/pre-install.bash b/cookbooks/chef-workstation/recipes/pre-install.bash new file mode 100755 index 0000000..eb1a231 --- /dev/null +++ b/cookbooks/chef-workstation/recipes/pre-install.bash @@ -0,0 +1,13 @@ +#!/bin/bash -e + +function main() +{ + source "$(dirname "${BASH_SOURCE[0]}")/../../../libraries/util.bash" + + checkRequireMacSystem + checkRequireRootUser + + rm -f -r -v '/opt/chef-workstation' +} + +main "${@}" \ No newline at end of file diff --git a/roles/nam/roles/mac-cli-apps.bash b/roles/nam/roles/mac-cli-apps.bash index 337d92b..21d8cee 100755 --- a/roles/nam/roles/mac-cli-apps.bash +++ b/roles/nam/roles/mac-cli-apps.bash @@ -5,7 +5,7 @@ function main() # Packages local -r caskPackageNames=( - 'chef/chef/chefdk' + 'chef-workstation' ) local -r packageNames=(