Add a shallow installation script

This commit is contained in:
Manuel Thalmann 2024-07-13 15:49:55 +02:00
parent a38a3b7154
commit 1d3b22d78e
2 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,16 @@
#!/bin/env fish
set -l dir (status dirname)
function initialize -V dir
"$dir/../Software/base-devel/install.sh"
"$dir/../Config/pacman/install.sh"
"$dir/../Software/yay/install.sh"
end
if not type -q installSoftware
function installSoftware
. "$(pwd)/../Collections/personal.sh";
end
end
source "$dir/../../Common/OS/install.fish"

View file

@ -31,6 +31,12 @@ if [ (id -u) -eq 0 ]
and sudo --preserve-env="CONFIG_MODULE" --user "$name" "$INSTALLER_SCRIPT"
rm "$sudoConfig"
userdel -r "$name"
else
runHook initialize || true
runHook installDrivers || true
runHook installOS || true
runHook installSoftware || true
runHook initializeConfig || true
runHook postInstall || true
end