PortValhalla/scripts/Arch/OS/install.sh

43 lines
949 B
Bash
Raw Normal View History

2024-03-24 23:26:12 +00:00
#!/bin/bash -e
2024-03-24 04:26:19 +00:00
rootDir="${BASH_SOURCE%/*}";
customPortValhallaSudoConfigFile="/etc/sudoers.d/1337_PortValhalla"
2024-03-23 15:31:10 +00:00
pushd "$rootDir" > /dev/null;
2024-03-24 12:05:32 +00:00
. "../../Common/Scripts/hooks.sh";
function autoRoot() {
{
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL"
} | sudo tee "$customPortValhallaSudoConfigFile" > /dev/null;
}
function defaultProfileSetup() {
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" \
INSTALL_FONTS=0 \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
}
runHook initialize \
autoRoot;
. "../Software/base-devel/install.sh";
. "../Config/pacman/install.sh";
. "../Software/yay/install.sh";
sudo pacman --noconfirm -Syu pacman-contrib;
2024-03-23 15:31:10 +00:00
runHook installDrivers;
runHook installSoftware \
. "$(pwd)/../Collections/personal.sh";
runHook initializeConfig;
runHook initializeProfile \
defaultProfileSetup;
2024-03-23 15:31:10 +00:00
runHook postInstall \
sudo rm "$customPortValhallaSudoConfigFile";
popd > /dev/null;