Le 10/04/2010 12:10, Eugen Leitl a écrit :
> I'm processing /24 worth of vservers at a time via a noninteractive script,
> and unfortunately can't make exec export DEBIAN_FRONTEND=noninteractive
> stick. How are you doing it?
>
> The script I use, called as e.g. ./modall.sh 1 254
>
> #!/bin/sh
> set -x
> IPstart=$1
> IPend=$2
>
> function process () {
> vserver v${1} restart
> vserver v${1} exec apt-get update
> vserver v${1} exec export DEBIAN_FRONTEND=noninteractive
> vserver v${1} exec apt-get -y --force-yes install locales nginx postfix
> vserver v${1} hashify
> }
>
> for i in `seq $IPstart $IPend`;
> do
> process $i
> done
>
> The error I'm getting is vcontext: execvp("export"): No such file or directory
> Using just DEBIAN_FRONTEND=noninteractive is no good either, and there's
> no way to execute multiple commands in one line with vserver exec
>
> Do I have to build a script in each vserver and call it? If yes, can someone
> post a recipe for that? Thanks.
>
>
had you try to put all on a script and launch the script with vserver exec ?
#!/bin/bash
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get -y --force-yes install locales nginx postfix
-- Cordialement, Ghislain ADNET. AQUEOS. Pour toute demande merci de passer par le site de contact et support: https://support.aqueos.net. Les demandes par email doivent etre envoyées a support@support.aqueos.net ET comporter une des mentions suivante en debut de sujet: AQ-VPS ou AQ-MPS pour les mails concernant les vps ou mps AQ-SERVEUR pour les mails concernant les dédiés AQ-CONTACT pour les mails de contact commercial