Skip to content

Upgrade scripts fails in proxy environments. Add -E to sudo? #62

Description

@wifinigel

Hey

Is it possible for the setup.sh scrip and the guids to be updated with sudo -E ? Makes it so that the subprocess inherit the enviroment with the proxy settings.

Kind regards,
Tor Stefan

root@snorty-svg:/var/log# curl -s https://raw.githubusercontent.com/wifinigel/wiperf/dev/setup.sh | sudo bash -s upgrade rpi
(ok) wiperf will now be unistalled, then re-installed with a new version
(ok) checking we can get to the Internet before we start...
(fail) Unable to reach Internet - check connection (exiting)

root@snorty-svg:~# curl -s https://raw.githubusercontent.com/wifinigel/wiperf/dev/setup.sh | sudo -E bash -s upgrade rpi
(ok) wiperf will now be unistalled, then re-installed with a new version
(ok) checking we can get to the Internet before we start...
(ok) Starting wiperf uninstall process (see /var/log/wiperf_install.log for details)
(ok) Removing Python modules
(ok) ...wiperf_poller
(ok) Removing install dir
(ok) Removing config dir
(ok) Removing switcher script
(ok) Removing log files
(ok) Done
(ok) Installing latest version of wiperf...
(ok) Starting wiperf install process for rpi (see /var/log/wiperf_install.log for details)
(ok) Version: 2.2.0 (poller ver: 0.3.0, branch: main)
Unable to reach Internet - check connection (exiting)

Originally posted by @torstefan in #59

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions