Răsfoiți Sursa

Add documentation note about upgrading multiple pipx installations of borgmatic.

Dan Helfman 1 an în urmă
părinte
comite
af422ad705
2 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 1 0
      borgmatic/execute.py
  2. 3 1
      docs/how-to/upgrade.md

+ 1 - 0
borgmatic/execute.py

@@ -134,6 +134,7 @@ def log_outputs(processes, exclude_stdouts, output_log_level, borg_local_path):
                 still_running = True
                 still_running = True
 
 
             command = process.args.split(' ') if isinstance(process.args, str) else process.args
             command = process.args.split(' ') if isinstance(process.args, str) else process.args
+
             # If any process errors, then raise accordingly.
             # If any process errors, then raise accordingly.
             if exit_code_indicates_error(command, exit_code, borg_local_path):
             if exit_code_indicates_error(command, exit_code, borg_local_path):
                 # If an error occurs, include its output in the raised exception so that we don't
                 # If an error occurs, include its output in the raised exception so that we don't

+ 3 - 1
docs/how-to/upgrade.md

@@ -16,7 +16,9 @@ is to run the following:
 sudo pipx upgrade borgmatic
 sudo pipx upgrade borgmatic
 ```
 ```
 
 
-(Or without `sudo` if you installed borgmatic as a non-root user.)
+Omit `sudo` if you installed borgmatic as a non-root user. And if you
+installed borgmatic *both* as root and as a non-root user, you'll need to
+upgrade each installation indepedently.
 
 
 If you originally installed borgmatic with `sudo pip3 install --user`, you can
 If you originally installed borgmatic with `sudo pip3 install --user`, you can
 uninstall it first with `sudo pip3 uninstall borgmatic` and then [install it
 uninstall it first with `sudo pip3 uninstall borgmatic` and then [install it