PortValhalla/scripts/Arch/OS/install.sh

38 lines
885 B
Bash
Executable file

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