Re: [vserver] exec export DEBIAN_FRONTEND=noninteractive

From: Ghislain <>
Date: Sat 10 Apr 2010 - 11:18:07 BST
Message-ID: <>

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. ./ 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 ?


apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get -y --force-yes install locales nginx postfix

Ghislain ADNET.
Pour toute demande merci de passer par le site de contact et support:
Les demandes par email doivent etre envoyées a 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

Received on Sat Apr 10 11:18:19 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 10 Apr 2010 - 11:18:21 BST by hypermail 2.1.8