AJ Jordan 2911dfc37d
Don't restart with sudo(8) if it's not available
Some environments, like system containers, have no reason to have
sudo(8) installed. In these environments restart.sh will silently fail
because /usr/bin/sudo does not exist to execute, so test that sudo
exists and don't try to use it otherwise.

Note also that hardcoding sudo's path is wrong: it can be installed in
other places. On FreeBSD, for example, it is /usr/local/bin/sudo when
installed from ports.
2020-11-29 04:04:38 -05:00
..
2020-07-23 20:53:04 +02:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-11-15 13:31:47 -07:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-03-22 16:01:33 -04:00
2020-09-04 07:04:06 -06:00