logilab-devtools #7832 use 'execute' command instead of 'login' [deprecated]

The 'execute' command is easier to pilot than the 'login' one...

Moreover, we could have a dedicated directory with some useful scripts in /etc/lgp/scripts By example, /etc/lgp/scripts/login could be use instead of the login command:

#!/bin/sh -x

export TERM=linux

echo "deb http://$SUDO_USER:$SUDO_USER@intranet.logilab.fr/~$SUDO_USER/dists $DIST/" >> /etc/apt/sources.list
wget -q http://ftp.logilab.org/dists/logilab-dists-key.asc  -O - | apt-key add -
cat > /etc/apt/apt.conf.d/99lgp <<EOF
APT {
  Get {
    Assume-Yes "true";
    Fix-Broken "true";
    Force-Yes "true";
  };
  Clean "always";
  AllowUnauthenticated "true";
  ReInstall "true";
};

// Pre-configure all packages before
// they are installed.
DPkg::Pre-Install-Pkgs {
  "dpkg-preconfigure --apt --priority=low";
};
EOF
apt-get update

export DEBIAN_FRONTEND=dialog

/bin/sh

Think about actions you want to perform before testing:

  • add deb repository in etc/apt/sources.list
  • change permission
  • install something
prioritynormal
typeenhancement
done in<not specified>
load0.000
load left0.000
closed by<not specified>