PortValhalla/scripts/Arch/OS/install.sh

39 lines
885 B
Bash
Raw Normal View History

#!/bin/bash
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;
}
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 \
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" \
INSTALL_FONTS=0 \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
runHook postInstall \
sudo rm "$customPortValhallaSudoConfigFile";
popd > /dev/null;