mirror of
https://github.com/MLBZ521/MacAdmin.git
synced 2026-02-03 14:03:26 +00:00
v1.0.0 = Initial Production Version
+ Initial Production Version
This commit is contained in:
47
Software/ARCHICAD/install_ARCHICAD Patch.sh
Normal file
47
Software/ARCHICAD/install_ARCHICAD Patch.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
###################################################################################################
|
||||
# Script Name: install_ARCHICAD Patch.sh
|
||||
# By: Zack Thompson / Created: 1/22/2019
|
||||
# Version: 1.0.0 / Updated: 1/22/2019 / By: ZT
|
||||
#
|
||||
# Description: This script installs ARCHICAD in unattended mode.
|
||||
#
|
||||
###################################################################################################
|
||||
|
||||
echo "***** Install ARCHICAD Patch Process: START *****"
|
||||
|
||||
##################################################
|
||||
# Define Variables
|
||||
|
||||
# Set working directory
|
||||
pkgDir=$(/usr/bin/dirname "${0}")
|
||||
# Get the filename of the .app file
|
||||
ARCHICADinstaller=$(/bin/ls "${pkgDir}" | /usr/bin/grep .app)
|
||||
|
||||
##################################################
|
||||
# Bits staged...
|
||||
|
||||
# Check the installation target.
|
||||
if [[ $3 != "/" ]]; then
|
||||
echo "ERROR: Target disk is not the startup disk."
|
||||
echo "***** Install ARCHICAD Patch process: FAILED *****"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing: " $( "${pkgDir}/${ARCHICADinstaller}/Contents/MacOS/installbuilder.sh" --version --mode unattended )
|
||||
|
||||
installResult=$( "${pkgDir}/${ARCHICADinstaller}/Contents/MacOS/installbuilder.sh" --mode unattended --unattendedmodeui none )
|
||||
exitCode=$?
|
||||
|
||||
if [[ $exitCode != 0 ]]; then
|
||||
echo "Installation FAILED!"
|
||||
echo "Reason: ${installResult}"
|
||||
echo "Exit Code: ${exitCode}"
|
||||
echo "***** Install ARCHICAD Patch process: FAILED *****"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "ARCHICAD has been installed!"
|
||||
echo "***** Install ARCHICAD Patch Process: COMPLETE *****"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user