Add module headings to modules

This commit is contained in:
Rezart Qelibari
2022-04-26 04:51:40 +02:00
parent 095e4e5478
commit 229af9e107
8 changed files with 8 additions and 2 deletions

View File

@@ -43,7 +43,6 @@ function setComputerName() {
function configureComputerHostname() {
local currentComputerName="`scutil --get ComputerName`"
lop -y h1 -- -i 'Configure Computer Hostname'
if [[ "${currentComputerName}" != "${hostname}" ]]; then
lop -- -i 'Hostname of computer has not been set.' -i "Will set to ${hostname}."
indicateActivity -- setComputerName 'Setting computer name'
@@ -103,6 +102,7 @@ function configureLoginWindow() {
}
function configure_system() {
lop -y h1 -- -i 'Configure System Settings'
quitSystemPreferences
configureComputerHostname
configureBasicSystem

View File

@@ -175,6 +175,7 @@ function allowOnlyFileVaultUserToUnlock() {
}
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 }
checkSecureTokenUserPassword || { lop -- -e 'The secure token user password is incorrect.'; return 11 }
convertPathToDefaultPicture

View File

@@ -231,6 +231,7 @@ function tapHomebrewCaskFonts() {
}
function configure_system() {
lop -y h1 -- -i 'Install System Homebrew'
createHomebrewUserIfNeccessary || return 10
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

View File

@@ -88,6 +88,7 @@ function installBrews() {
}
function configure_system() {
lop -y h1 -- -i 'Install Homebrew Applications'
pushd -q /
installBrews
installCasks

View File

@@ -91,6 +91,7 @@ function enableLaunchDaemon() {
}
function configure_system() {
lop -y h1 -- -i 'Configure Microsoft Keyremapper'
local serviceName='de.astzweig.macos.launchdaemons.keymapper'
local dstDir='/usr/local/bin'
local xpcConsumerPath="${dstDir}/astzweig-xpc-consumer"

View File

@@ -9,6 +9,7 @@ function installMASApp() {
}
function configure_system() {
lop -y h1 -- -i 'Install Mac AppStore Apps'
installMASApp Keka 470158793
if ! isDebug; then

View File

@@ -8,7 +8,6 @@ function ensureRightAccess() {
}
function copyUtilityBinaries() {
lop -y h1 -- -i 'Installing utility binaries'
for file in ${_DIR}/../bin/*; do
indicateActivity cp,${file},${dstDir} "Copying ${file##*/}"
ensureRightAccess ${file}
@@ -24,6 +23,7 @@ function installDocopts() {
}
function configure_system() {
lop -y h1 -- -i 'Install Utility Binaries'
local dstDir='/usr/local/bin'
ensurePathOrLogError ${dstDir} 'Could not install binaries.' || return 10
installDocopts

View File

@@ -21,6 +21,7 @@ function modifyGlobalFpath() {
}
function configure_system() {
lop -y h1 -- -i 'Install ZSh Libraries'
local libDir=/usr/local/share/zsh/site-functions
local libs=()
ensurePathOrLogError ${libDir} 'Could not install zsh libraries.' || return 10