BrewPi / brewpi-tools

Various tools to setup/update/configure BrewPi
GNU General Public License v3.0
39 stars 46 forks source link

Network check #20

Open vanosg opened 10 years ago

vanosg commented 10 years ago

Check to see if network connectivity is available before running script- if we can't connect to the internet, how can we update!

elcojacobs commented 10 years ago

The run git as user commit, does it actually do anything? It checks the current user and then runs git as the current user, which I would think is the default behavior?

vanosg commented 10 years ago

logname checks the user who initiated the sudo command. git fetch is being run as the root user, as it was called via the sudo command.