Commit bfa73788 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Add a check for existence of sudo.

parent 248f5b22
sudo -n ifconfig -a >/dev/null
if [ $? -ne 0 ] ; then
echo You need to install and configure password-less sudo.
echo "The update process touches system files, so, from a root account:"
echo " sudo apt-get install sudo"
echo "...and then add this line to /etc/sudoers :"
echo " $USER ALL=(root) NOPASSWD: ALL"
echo "You can then re-run".
echo "If you don't feel comfortable with giving sudo credentials to the"
echo "update scripts, remember that you can apply this process in a chroot,"
echo "or in a VM ; and you can also use the pre-built TASTE VM or use our"
echo "Vagrant/Docker support to automatically build a sandboxed 'machine'."
echo "The scripts are open for reviewing anyway - they exist under the"
echo "install/ folder."
exit 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment