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;
|
} | 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";
|
||||||
|
|
Loading…
Reference in a new issue