You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Adopts recommended she-bang syntax.
2. Adds version number to banner (mainly as a visual aid when discussing
installation issues on Discord).
3. Removes internal SCRIPT variable which has a dependency on whether
the script is invoked directly or piped to bash.
4. No need to resolve absolute path for `IOTSTACK` variable. This just
causes an error in green-fields situations.
5. Better messaging in `handle_exit()` so it is clear whether the script
completed normally with no further work to do, or should be re-run.
6. Better handling of "logout required" situation. Rather than killing
the immediate parent process (`$PPID`), now iterates the process
ancestry to find the most-distant ancestor owned by the current user.
For SSH connections this is typically the `sshd` spawned for the
user. For console connections, it's typically the shell launched by
the login process. This deals with the problem where a script (eg the
menu) calling the installer script would be the immediate parent
process, and it would be killed without necessarily causing the
required logout to enable group membership changes to take effect.
7. Removes `is_running_OS_release()` function which was only being used
to infer modern Python behaviour from "bookworm" (ie a hack) and
which failed on Ubuntu.
8. Uses and documents use of `PIP_BREAK_SYSTEM_PACKAGES` variable which
triggers the desired modern Python behaviour on systems which support
it, being ignored otherwise.
Signed-off-by: Phill Kelley <[email protected]>
0 commit comments