Refactor installation functions
This commit is contained in:
parent
32dfdcc6c3
commit
b1dc0b2009
6 changed files with 32 additions and 32 deletions
scripts/Arch/OS
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash -e
|
||||
rootDir="${BASH_SOURCE%/*}";
|
||||
customPortValhallaSudoConfigFile="/etc/sudoers.d/1337_PortValhalla"
|
||||
pushd "$rootDir" > /dev/null;
|
||||
|
||||
pushd "$rootDir" > /dev/null;
|
||||
. "../../Common/Scripts/hooks.sh";
|
||||
popd > /dev/null;
|
||||
|
||||
function autoRoot() {
|
||||
{
|
||||
|
@ -20,9 +21,11 @@ function defaultProfileSetup() {
|
|||
runHook initialize \
|
||||
autoRoot;
|
||||
|
||||
pushd "$rootDir" > /dev/null;
|
||||
. "../Software/base-devel/install.sh";
|
||||
. "../Config/pacman/install.sh";
|
||||
. "../Software/yay/install.sh";
|
||||
popd > /dev/null;
|
||||
|
||||
sudo pacman --noconfirm -Syu pacman-contrib;
|
||||
|
||||
|
@ -38,5 +41,3 @@ runHook initializeProfile \
|
|||
|
||||
runHook postInstall \
|
||||
sudo rm "$customPortValhallaSudoConfigFile" /var/db/sudo/lectured/$UID;
|
||||
|
||||
popd > /dev/null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue