2024-03-07 20:39:23 +00:00
|
|
|
#!/bin/bash
|
2024-03-24 04:26:19 +00:00
|
|
|
rootDir="${BASH_SOURCE%/*}";
|
2024-03-24 12:09:21 +00:00
|
|
|
customPortValhallaSudoConfigFile="/etc/sudoers.d/1337_PortValhalla"
|
2024-03-23 15:31:10 +00:00
|
|
|
pushd "$rootDir" > /dev/null;
|
2024-03-07 20:39:23 +00:00
|
|
|
|
2024-03-24 12:05:32 +00:00
|
|
|
. "../../Common/Scripts/hooks.sh";
|
|
|
|
|
2024-03-24 11:47:10 +00:00
|
|
|
function autoRoot() {
|
|
|
|
{
|
|
|
|
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL"
|
2024-03-24 12:09:21 +00:00
|
|
|
} | sudo tee "$customPortValhallaSudoConfigFile" > /dev/null;
|
2024-03-24 11:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
runHook initialize \
|
|
|
|
autoRoot;
|
|
|
|
|
2024-03-24 11:52:13 +00:00
|
|
|
. "../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";
|
|
|
|
|
2024-03-24 11:47:10 +00:00
|
|
|
runHook postInstall \
|
2024-03-24 12:09:21 +00:00
|
|
|
sudo rm "$customPortValhallaSudoConfigFile";
|
2024-03-24 11:47:10 +00:00
|
|
|
|
2024-03-07 20:39:23 +00:00
|
|
|
popd > /dev/null;
|