From 8905d0c47a28b99100960496626124984bd2a737 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 3 Oct 2012 20:18:08 +0200 Subject: [PATCH] add debconf yunohostv2 --- debconfv2 | 16 ++++++++++++++++ install_yunohost | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 debconfv2 diff --git a/debconfv2 b/debconfv2 new file mode 100644 index 0000000..e7b306e --- /dev/null +++ b/debconfv2 @@ -0,0 +1,16 @@ +slapd slapd/domain string yunohost.org +slapd shared/organization string yunohost.org +postfix postfix/main_mailer_type select Internet Site +postfix postfix/mailname string /etc/mailname +mysql-server-5.1 mysql-server/root_password password yunohost +mysql-server-5.1 mysql-server/root_password_again password yunohost +samba-common samba-common/workgroup string WORKGROUP +samba-common samba-common/workgroup boolean true +nslcd nslcd/ldap-bindpw password +nslcd nslcd/ldap-starttls boolean false +nslcd nslcd/ldap-reqcert select +nslcd nslcd/ldap-uris string ldap://localhost/ +nslcd nslcd/ldap-binddn string +nslcd nslcd/ldap-base string dc=yunohost,dc=org +proftpd-basic shared/proftpd/inetd_or_standalone select standalone +libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow diff --git a/install_yunohost b/install_yunohost index 23a0f67..498174f 100755 --- a/install_yunohost +++ b/install_yunohost @@ -151,7 +151,12 @@ then echo "======== Install ========" #add answer in debconf db - debconf-set-selections debconf + if [[ $(lsb_release -cs) = "squeeze" ]]; + then + debconf-set-selections debconf + elif [[ $(lsb_release -cs) = "wheezy" ]] || [[ $(lsb_release -cs) = "n/a" ]]; + debconf-set-selections debconfv2 + fi #Install yunohost packages debconf-apt-progress \