Add module headings to modules
This commit is contained in:
@@ -43,7 +43,6 @@ function setComputerName() {
|
|||||||
|
|
||||||
function configureComputerHostname() {
|
function configureComputerHostname() {
|
||||||
local currentComputerName="`scutil --get ComputerName`"
|
local currentComputerName="`scutil --get ComputerName`"
|
||||||
lop -y h1 -- -i 'Configure Computer Hostname'
|
|
||||||
if [[ "${currentComputerName}" != "${hostname}" ]]; then
|
if [[ "${currentComputerName}" != "${hostname}" ]]; then
|
||||||
lop -- -i 'Hostname of computer has not been set.' -i "Will set to ${hostname}."
|
lop -- -i 'Hostname of computer has not been set.' -i "Will set to ${hostname}."
|
||||||
indicateActivity -- setComputerName 'Setting computer name'
|
indicateActivity -- setComputerName 'Setting computer name'
|
||||||
@@ -103,6 +102,7 @@ function configureLoginWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Configure System Settings'
|
||||||
quitSystemPreferences
|
quitSystemPreferences
|
||||||
configureComputerHostname
|
configureComputerHostname
|
||||||
configureBasicSystem
|
configureBasicSystem
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ function allowOnlyFileVaultUserToUnlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Setup FileVault System'
|
||||||
checkSecureTokenForUser "${secure_token_user_username}" || { lop -- -e 'The provided secure token user has no secure token.'; return 10 }
|
checkSecureTokenForUser "${secure_token_user_username}" || { lop -- -e 'The provided secure token user has no secure token.'; return 10 }
|
||||||
checkSecureTokenUserPassword || { lop -- -e 'The secure token user password is incorrect.'; return 11 }
|
checkSecureTokenUserPassword || { lop -- -e 'The secure token user password is incorrect.'; return 11 }
|
||||||
convertPathToDefaultPicture
|
convertPathToDefaultPicture
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ function tapHomebrewCaskFonts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Install System Homebrew'
|
||||||
createHomebrewUserIfNeccessary || return 10
|
createHomebrewUserIfNeccessary || return 10
|
||||||
indicateActivity ensureUserIsInAdminGroup,${homebrew_username} 'Ensure Homebrew user is in admin group' || return 11
|
indicateActivity ensureUserIsInAdminGroup,${homebrew_username} 'Ensure Homebrew user is in admin group' || return 11
|
||||||
indicateActivity ensureUserCannotRunSudo,${homebrew_username} 'Ensure Homebrew user can not run sudo' || return 12
|
indicateActivity ensureUserCannotRunSudo,${homebrew_username} 'Ensure Homebrew user can not run sudo' || return 12
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ function installBrews() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Install Homebrew Applications'
|
||||||
pushd -q /
|
pushd -q /
|
||||||
installBrews
|
installBrews
|
||||||
installCasks
|
installCasks
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ function enableLaunchDaemon() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Configure Microsoft Keyremapper'
|
||||||
local serviceName='de.astzweig.macos.launchdaemons.keymapper'
|
local serviceName='de.astzweig.macos.launchdaemons.keymapper'
|
||||||
local dstDir='/usr/local/bin'
|
local dstDir='/usr/local/bin'
|
||||||
local xpcConsumerPath="${dstDir}/astzweig-xpc-consumer"
|
local xpcConsumerPath="${dstDir}/astzweig-xpc-consumer"
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ function installMASApp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Install Mac AppStore Apps'
|
||||||
installMASApp Keka 470158793
|
installMASApp Keka 470158793
|
||||||
|
|
||||||
if ! isDebug; then
|
if ! isDebug; then
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ function ensureRightAccess() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copyUtilityBinaries() {
|
function copyUtilityBinaries() {
|
||||||
lop -y h1 -- -i 'Installing utility binaries'
|
|
||||||
for file in ${_DIR}/../bin/*; do
|
for file in ${_DIR}/../bin/*; do
|
||||||
indicateActivity cp,${file},${dstDir} "Copying ${file##*/}"
|
indicateActivity cp,${file},${dstDir} "Copying ${file##*/}"
|
||||||
ensureRightAccess ${file}
|
ensureRightAccess ${file}
|
||||||
@@ -24,6 +23,7 @@ function installDocopts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Install Utility Binaries'
|
||||||
local dstDir='/usr/local/bin'
|
local dstDir='/usr/local/bin'
|
||||||
ensurePathOrLogError ${dstDir} 'Could not install binaries.' || return 10
|
ensurePathOrLogError ${dstDir} 'Could not install binaries.' || return 10
|
||||||
installDocopts
|
installDocopts
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ function modifyGlobalFpath() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configure_system() {
|
function configure_system() {
|
||||||
|
lop -y h1 -- -i 'Install ZSh Libraries'
|
||||||
local libDir=/usr/local/share/zsh/site-functions
|
local libDir=/usr/local/share/zsh/site-functions
|
||||||
local libs=()
|
local libs=()
|
||||||
ensurePathOrLogError ${libDir} 'Could not install zsh libraries.' || return 10
|
ensurePathOrLogError ${libDir} 'Could not install zsh libraries.' || return 10
|
||||||
|
|||||||
Reference in New Issue
Block a user