From: <abe...@us...> - 2015-12-14 02:49:27
|
Revision: 7404 http://sourceforge.net/p/astlinux/code/7404 Author: abelbeck Date: 2015-12-14 02:49:25 +0000 (Mon, 14 Dec 2015) Log Message: ----------- master-build, add an early 'sudo' test to make sure /etc/sudoers is correct Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2015-12-13 23:03:15 UTC (rev 7403) +++ branches/1.0/scripts/master-build 2015-12-14 02:49:25 UTC (rev 7404) @@ -103,6 +103,17 @@ fi fi +echo " +Trying sudo, if this prompts for a password, ^C and 'sudoedit /etc/sudoers' and add a line at the end +something like: + +$(id -un) ALL = NOPASSWD: ALL +" +if ! sudo /bin/true; then + echo "master-build: You need to be a sudo group member to run this script" >&2 + exit 1 +fi + echo "Regenerate the initrd" rm -f initrd.img This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |