Skip to content

Commit

Permalink
update other macos deployment scripts (#90)
Browse files Browse the repository at this point in the history
* update other macos deployment scripts
  • Loading branch information
uttie-huntress authored Jul 18, 2024
1 parent 43cfc76 commit bbeba0f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
12 changes: 8 additions & 4 deletions Atera/InstallHuntress-macOS-Atera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,17 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
logger "=============== Begin Installer Logs ==============="
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="
if [ $? != "0" ]; then
logger "Installer Error: $install_result"
exit 1
fi

if [ $? != "0" ]; then
logger "Installer Error: $install_result"
Expand Down
9 changes: 4 additions & 5 deletions N-able (SolarWinds) N-central/InstallHuntress-macOS-nable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,12 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
logger "=============== Begin Installer Logs ==============="
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="

if [ $? != "0" ]; then
logger "Installer Error: $install_result"
Expand Down
9 changes: 4 additions & 5 deletions Ninja-RMM/InstallHuntress-macOS-NinjaRMM.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,12 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
logger "=============== Begin Installer Logs ==============="
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="

if [ $? != "0" ]; then
logger "Installer Error: $install_result"
Expand Down
9 changes: 4 additions & 5 deletions Syncro/InstallHuntress-macOS-Syncro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,12 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
logger "=============== Begin Installer Logs ==============="
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="

if [ $? != "0" ]; then
logger "Installer Error: $install_result"
Expand Down

0 comments on commit bbeba0f

Please sign in to comment.