[fix] fix install on jessie

This commit is contained in:
Adrien Beudin 2015-05-02 05:10:11 -04:00
parent 31647291b8
commit 1b0aecc5b9
2 changed files with 24 additions and 1 deletions

18
debconfjessie Normal file
View file

@ -0,0 +1,18 @@
slapd slapd/password1 password yunohost
slapd slapd/password2 password yunohost
slapd slapd/domain string yunohost.org
slapd shared/organization string yunohost.org
slapd slapd/allow_ldap_v2 boolean false
slapd slapd/invalid_config boolean true
slapd slapd/backend select MDB
postfix postfix/main_mailer_type select Internet Site
postfix postfix/mailname string /etc/mailname
mysql-server-5.5 mysql-server/root_password password yunohost
mysql-server-5.5 mysql-server/root_password_again password yunohost
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
libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow

View file

@ -140,7 +140,12 @@ then
echo "======== Install ========"
#add answer in debconf db
debconf-set-selections $DIR/debconfv2
if [ $(lsb_release -c | awk '{print $2}') = jessie ];
then
debconf-set-selections $DIR/debconfjessie
else
debconf-set-selections $DIR/debconfv2
fi
#Install yunohost packages
debconf-apt-progress \