diff options
Diffstat (limited to 'scripts/install-multi-user.sh')
-rw-r--r-- | scripts/install-multi-user.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index 7d1cb8c5a..c91dd404a 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 if [ -e "$profile_target$PROFILE_BACKUP_SUFFIX" ]; then failure <<EOF |