source: make-mini-image/config/25-install-pkg @ 2905

Last change on this file since 2905 was 1827, checked in by mabarracus, 4 years ago

Final config & renamed scripts

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2set -e
3
4source CONFIG
5source functions
6
7ensure BASE NAME
8
9FIXED_PACKAGES=" ldap-auth-client ntp lmd-client epoptes-client lliurex-shutdowner lliurex-zero-shutdown-client n4d n4d-lliurex-base language-pack-ca lliurex-grub-custom lliurex-artwork-plymouth-desktop "
10
11if exists PACKAGES; then
12    PACKAGES+=" ${FIXED_PACKAGES} "
13else
14    PACKAGES=" ${FIXED_PACKAGES} "
15fi
16
17OPTS=""
18if [ "x${VERBOSE}" = "x0" ]; then
19    echo "Installing ..."
20    exec &> /dev/null
21else
22    echo "Installing ... ${PACKAGES}"
23fi
24
25cat > ./${BASE}/${NAME}/script.sh << _EOF
26export DEBIAN_FRONTEND=noninteractive
27
28echo ldap-auth-config   ldap-auth-config/override       boolean true | debconf-set-selections
29echo ldap-auth-config   ldap-auth-config/bindpw password        | debconf-set-selections
30echo ldap-auth-config   ldap-auth-config/rootbindpw     password        | debconf-set-selections
31echo ldap-auth-config   ldap-auth-config/binddn string  cn=proxyuser,dc=example,dc=net  | debconf-set-selections
32echo ldap-auth-config   ldap-auth-config/move-to-debconf        boolean true    | debconf-set-selections
33echo ldap-auth-config   ldap-auth-config/ldapns/ldap-server     string  ldap://server/  | debconf-set-selections
34echo ldap-auth-config   ldap-auth-config/ldapns/base-dn string  dc=ma5,dc=lliurex,dc=net        | debconf-set-selections
35echo ldap-auth-config   ldap-auth-config/dbrootlogin    boolean true    | debconf-set-selections
36echo ldap-auth-config   ldap-auth-config/dblogin        boolean false   | debconf-set-selections
37echo ldap-auth-config   ldap-auth-config/pam_password   select  md5     | debconf-set-selections
38echo libpam-runtime     libpam-runtime/profiles multiselect     unix, ldap, systemd     | debconf-set-selections
39echo ldap-auth-config   ldap-auth-config/ldapns/ldap_version    select  3       | debconf-set-selections
40echo ldap-auth-config   ldap-auth-config/rootbinddn     string  cn=admin,dc=ma5,dc=lliurex,dc=net       | debconf-set-selections
41echo ldap-auth-config   ldap-auth-config/override       boolean true    | debconf-set-selections
42
43
44apt-get -y update
45apt-get -y install ${PACKAGES}
46_EOF
47
48
49ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash /script.sh
50
51if [ "$?" != "0" ]; then
52    exit 1
53fi
54
55rm -f ./${BASE}/${NAME}/script.sh
56
57exit 0
Note: See TracBrowser for help on using the repository browser.