aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-multi-user.sh
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-12-08 20:04:03 +0000
committerGitHub <noreply@github.com>2021-12-08 20:04:03 +0000
commit75654bacc571bf4c193599ecd68f7c94d63994e7 (patch)
tree02557683995fa20fabbf3bb6dde6b1993a59ae34 /scripts/install-multi-user.sh
parent9b2ff20e3bdfbcc3d285b0ca621ebcc6cf968824 (diff)
parent69431edbc174c7644f7143ba5c81681b7ece186e (diff)
Merge pull request #5521 from abathur/clearly_mark_validation_step
installer: clarify starting assumption task
Diffstat (limited to 'scripts/install-multi-user.sh')
-rw-r--r--scripts/install-multi-user.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index 0dba36f51..3a24296ee 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -377,6 +377,11 @@ cure_artifacts() {
}
validate_starting_assumptions() {
+ task "Checking for artifacts of previous installs"
+ cat <<EOF
+Before I try to install, I'll check for signs Nix already is or has
+been installed on this system.
+EOF
if type nix-env 2> /dev/null >&2; then
warning <<EOF
Nix already appears to be installed. This installer may run into issues.
@@ -386,6 +391,11 @@ $(uninstall_directions)
EOF
fi
+ # TODO: I think it would be good for this step to accumulate more
+ # knowledge of older obsolete artifacts, if there are any.
+ # We could issue a "reminder" here that the user might want
+ # to clean them up?
+
for profile_target in "${PROFILE_TARGETS[@]}"; do
# TODO: I think it would be good to accumulate a list of all
# of the copies so that people don't hit this 2 or 3x in