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