Hello,

I need to perform an installation of a package (mysql-server-5.1), but I do not want to interact for the definition of root password.

In bash the instruction is:

DEBIAN_FRONTEND = noninteractive /usr/bin/dpkg --configure mysql-server-5.1

I tried this in BitRock:

<runProgram>
 <program> DEBIAN_FRONTEND = noninteractive dpkg </program>
 <programArguments> --configure mysql-server-5.1 </ProgramArguments> 
</runprogram>

Without success!

Thank you in advance

asked 30 Jul '12, 04:51

mrinco's gravatar image

mrinco
0457
accept rate: 50%


You could use the below code:

<setEnvironmentVariable>
    <name>DEBIAN_FRONTEND</name>
    <value>noninteractive</value>
</setEnvironmentVariable>
<runProgram>
   <program>dpkg</program>
   <programArguments>--configure mysql-server-5.1</ProgramArguments> 
</runprogram>

Please note the <setEnvironmentVariable> action does not add the environment variable to the system, it simply defines it in the current process.

link

answered 30 Jul '12, 04:59

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

It's great, it works!

Thank you very much for the quick response.

(30 Jul '12, 05:19) mrinco
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×73
×9
×1
×1
×1
×1

Asked: 30 Jul '12, 04:51

Seen: 2,813 times

Last updated: 30 Jul '12, 08:15