[Abtlinux-svn] SF.net SVN: abtlinux: [175] src/trunk/abt.rb
Status: Alpha
Brought to you by:
eschabell
From: <esc...@us...> - 2006-11-15 11:06:08
|
Revision: 175 http://svn.sourceforge.net/abtlinux/?rev=175&view=rev Author: eschabell Date: 2006-11-15 03:06:07 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Now jumping thru with root login automatically before running abt. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-14 21:32:48 UTC (rev 174) +++ src/trunk/abt.rb 2006-11-15 11:06:07 UTC (rev 175) @@ -46,12 +46,22 @@ show.usage( "all" ) end -# TODO: provide root login here? +# from here on out, need root access. if ( Process.uid != 0 ) - puts "\nYou need to run abt as root.\n\n" + args = "" + + puts "\nEnter root password:" + + for i in 0...ARGV.length + args = args + " " + ARGV[i] + end + + # TODO: remove the ./abt call on deployment. + system( 'su -c "./abt ' + args + '" root' ) exit end + case ARGV[0] when "install", "-i" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |