Externalize profile setup into separate function

This commit is contained in:
Manuel Thalmann 2024-03-25 12:40:51 +01:00
parent 3b2a5fb9cf
commit 0028dc6c1a

View file

@ -11,6 +11,12 @@ function autoRoot() {
} | sudo tee "$customPortValhallaSudoConfigFile" > /dev/null; } | sudo tee "$customPortValhallaSudoConfigFile" > /dev/null;
} }
function defaultProfileSetup() {
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" \
INSTALL_FONTS=0 \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
}
runHook initialize \ runHook initialize \
autoRoot; autoRoot;
@ -28,9 +34,7 @@ runHook installSoftware \
runHook initializeConfig; runHook initializeConfig;
runHook initializeProfile \ runHook initializeProfile \
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" \ defaultProfileSetup;
INSTALL_FONTS=0 \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
runHook postInstall \ runHook postInstall \
sudo rm "$customPortValhallaSudoConfigFile"; sudo rm "$customPortValhallaSudoConfigFile";