Add a shallow installation script
This commit is contained in:
parent
84f0e8e1c5
commit
bc7869bce5
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,16 @@
|
||||||
#!/bin/env fish
|
#!/bin/env fish
|
||||||
set -l dir (status dirname)
|
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"
|
source "$dir/../../Common/OS/install.fish"
|
||||||
|
|
|
@ -31,6 +31,12 @@ if [ (id -u) -eq 0 ]
|
||||||
|
|
||||||
and sudo --preserve-env="CONFIG_MODULE" --user "$name" "$INSTALLER_SCRIPT"
|
and sudo --preserve-env="CONFIG_MODULE" --user "$name" "$INSTALLER_SCRIPT"
|
||||||
rm "$sudoConfig"
|
rm "$sudoConfig"
|
||||||
|
userdel -r "$name"
|
||||||
else
|
else
|
||||||
|
runHook initialize || true
|
||||||
|
runHook installDrivers || true
|
||||||
|
runHook installOS || true
|
||||||
|
runHook installSoftware || true
|
||||||
|
runHook initializeConfig || true
|
||||||
|
runHook postInstall || true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue