enhance setup script to support continuation of installation process
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
This commit is contained in:
parent
852c5ebef8
commit
0747d2a784
11
setup.sh
11
setup.sh
@ -301,7 +301,7 @@ install_nix() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
log_success "Nix has been installed. We're reinvoking the script to continue setup."
|
log_success "Nix has been installed. We're reinvoking the script to continue setup."
|
||||||
curl -L https://df.mvl.sh | bash
|
curl -L https://df.mvl.sh | bash -s - -c
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -446,6 +446,12 @@ main() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if this is a continuation -c flag
|
||||||
|
if [ "$1" = "-c" ]; then
|
||||||
|
log_info "Continuing setup..."
|
||||||
|
CONTINUATION=true
|
||||||
|
fi
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
check_prerequisites
|
check_prerequisites
|
||||||
|
|
||||||
@ -456,10 +462,13 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run setup steps
|
# Run setup steps
|
||||||
|
if [ "$CONTINUATION" != "true" ]; then
|
||||||
warning_prompt
|
warning_prompt
|
||||||
prepare_hostname
|
prepare_hostname
|
||||||
check_selinux
|
check_selinux
|
||||||
install_nix
|
install_nix
|
||||||
|
fi
|
||||||
|
|
||||||
install_home_manager
|
install_home_manager
|
||||||
setup_symlinks
|
setup_symlinks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user