Externalize profile setup into separate function
This commit is contained in:
parent
3b2a5fb9cf
commit
0028dc6c1a
1 changed files with 7 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue