diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-11-10 20:50:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 20:50:09 +0100 |
commit | 52a3b2ee6367306a3f17fe9a2d0e2e4096852e05 (patch) | |
tree | 7fe895a6b9885d6e8417239504a66f7270782625 | |
parent | a218cfd6c7e1686ee10cb0ef214cf3c624d15765 (diff) | |
parent | f7859eef49ea3a3563d821ba17c29deb7757b8a4 (diff) |
Merge pull request #5524 from abathur/improve_existing_backup_profile_msg
installer: improve existing rc backup nag
-rw-r--r-- | scripts/install-multi-user.sh | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index 7d1cb8c5a..eb5c48b73 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -387,19 +387,27 @@ EOF fi 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 + # a row for different files. if [ -e "$profile_target$PROFILE_BACKUP_SUFFIX" ]; then + # this backup process first released in Nix 2.1 failure <<EOF -When this script runs, it backs up the current $profile_target to -$profile_target$PROFILE_BACKUP_SUFFIX. This backup file already exists, though. +I back up shell profile/rc scripts before I add Nix to them. +I need to back up $profile_target to $profile_target$PROFILE_BACKUP_SUFFIX, +but the latter already exists. -Please follow these instructions to clean up the old backup file: +Here's how to clean up the old backup file: -1. Copy $profile_target and $profile_target$PROFILE_BACKUP_SUFFIX to another place, just -in case. +1. Back up (copy) $profile_target and $profile_target$PROFILE_BACKUP_SUFFIX + to another location, just in case. -2. Take care to make sure that $profile_target$PROFILE_BACKUP_SUFFIX doesn't look like -it has anything nix-related in it. If it does, something is probably -quite wrong. Please open an issue or get in touch immediately. +2. Ensure $profile_target$PROFILE_BACKUP_SUFFIX does not have anything + Nix-related in it. If it does, something is probably quite + wrong. Please open an issue or get in touch immediately. + +3. Once you confirm $profile_target is backed up and doesn't already + mention Nix, replace it with $profile_target$PROFILE_BACKUP_SUFFIX. EOF fi done |