Perform partitioning and repo-cloning in common setup
This commit is contained in:
parent
f39d703f06
commit
8715109e6e
2 changed files with 10 additions and 12 deletions
scripts/Common/OS
|
@ -5,7 +5,13 @@ begin
|
|||
source "$dir/../Scripts/hooks.fish"
|
||||
set -l name (getConfig valhalla.setupUser.name)
|
||||
set -l mountDir (getConfig valhalla.partition.rootDir)
|
||||
runHook setupOS || true
|
||||
set -l projectRoot (realpath "$dir/../../..")
|
||||
set -l projectName (basename "$projectRoot")
|
||||
set -l PROJECT_CLONE_ROOT "/opt/$(basename "$projectName")"
|
||||
|
||||
CONFIG_MODULE=$CONFIG_MODULE bash "$dir/partition.sh"
|
||||
and source "$dir/../../copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
|
||||
and runHook setupOS || true
|
||||
|
||||
and runHook createUser || \
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue